MoveStruct
data class MoveStruct(var structType: StructTag, var version: Version, var contents: ByteArray) : Disposable
A move struct
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Constructors
| MoveStruct | constructor(structType: StructTag, version: Version, contents: ByteArray) |
Properties
| Name | Summary |
|---|---|
| contents | var contents: ByteArray 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 |
Functions
| Name | Summary |
|---|---|
| destroy | open override fun destroy() |
| toBcs | fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | fun toDisplayString(): String Render this type as human-readable text. |
| toJson | fun toJson(): String Convert this type to a JSON encoded string. |