MoveStruct
MoveStruct
struct MoveStruct
A move struct
BCS
The BCS serialized form of this type is specified in
bcs-schema.abnf.
init(structType:version:contents:)
init(structType: StructTag, version: Version, contents: Data)
contents
var contents: Data
BCS bytes of a Move struct value
structType
var structType: StructTag
The type of this object
version
var version: Version
Number that increases each time a tx takes this object as a mutable input This is a lamport timestamp, not a sequentially increasing version
toBcs()
func toBcs() throws -> Data
Convert this type to BCS encoded bytes.
toDisplayString()
func toDisplayString() -> String
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
toJson()
func toJson() throws -> String
Convert this type to a JSON encoded string.