EosioInt64
public enum EosioInt64 : Codable
Meta type that can hold a 64 bit signed value that can come from the server as a Int64 or a String.
-
Value as a
Int64
.Declaration
Swift
case int64(Int64)
-
Value as a
String
.Declaration
Swift
case string(String)
-
Declaration
Swift
public var value: Int64 { get }
-
Initialize from a decoder, attempting to decode as a
Int64
first. If that is unsuccessful, attempt to decode asString
.Throws
DecodingError if the value cannot be decoded asInt64
orString
.Declaration
Swift
public init(from decoder: Decoder) throws
Parameters
decoder
Decoder to read from.
-
Encode to an encoder, attempting to encode as a
Int64
first. If that is unsuccessful, attempt to encode asString
.Throws
EncodingError if the value cannot be encoded asInt64
orString
.Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder to encode to.