MoveStruct
type MoveStruct
A move struct
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
type MoveStruct struct {
// The type of this object
StructType *StructTag
// Number that increases each time a tx takes this object as a mutable input This is a lamport
// timestamp, not a sequentially increasing version
Version *Version
// BCS bytes of a Move struct value
Contents []byte
}
func MoveStructFromBcs
func MoveStructFromBcs(bcs []byte) (MoveStruct, error)
Create this type from BCS encoded bytes.
func MoveStructFromJson
func MoveStructFromJson(json string) (MoveStruct, error)
Create this type from a JSON encoded string.
func (*MoveStruct) Destroy
func (r *MoveStruct) Destroy()
func (MoveStruct) ToBcs
func (_self MoveStruct) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (MoveStruct) ToDisplayString
func (_self MoveStruct) 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.
func (MoveStruct) ToJson
func (_self MoveStruct) ToJson() (string, error)
Convert this type to a JSON encoded string.