ObjectData
type ObjectData
Object data, either a package or 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 ObjectData struct {
// contains filtered or unexported fields
}
func LiftFromExternalObjectData
func LiftFromExternalObjectData(handle uint64) *ObjectData
func ObjectDataFromBcs
func ObjectDataFromBcs(bcs []byte) (*ObjectData, error)
Create this type from BCS encoded bytes.
func ObjectDataFromJson
func ObjectDataFromJson(json string) (*ObjectData, error)
Create this type from a JSON encoded string.
func ObjectDataNewMovePackage
func ObjectDataNewMovePackage(movePackage *MovePackage) *ObjectData
Create an `ObjectData` from `MovePackage`
func ObjectDataNewMoveStruct
func ObjectDataNewMoveStruct(moveStruct MoveStruct) *ObjectData
Create an `ObjectData` from a `MoveStruct`
func (*ObjectData) AsOptPackage
func (_self *ObjectData) AsOptPackage() **MovePackage
Try to interpret this object as a `MovePackage`
func (*ObjectData) AsOptStruct
func (_self *ObjectData) AsOptStruct() *MoveStruct
Try to interpret this object as a `MoveStruct`
func (*ObjectData) DebugString
func (_self *ObjectData) DebugString() string
func (*ObjectData) Destroy
func (object *ObjectData) Destroy()
func (*ObjectData) Eq
func (_self *ObjectData) Eq(other *ObjectData) bool
func (*ObjectData) Hash
func (_self *ObjectData) Hash() uint64
func (*ObjectData) IsPackage
func (_self *ObjectData) IsPackage() bool
Return whether this object is a `MovePackage`
func (*ObjectData) IsStruct
func (_self *ObjectData) IsStruct() bool
Return whether this object is a `MoveStruct`
func (*ObjectData) Ne
func (_self *ObjectData) Ne(other *ObjectData) bool
func (*ObjectData) ToBcs
func (_self *ObjectData) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*ObjectData) ToDisplayString
func (_self *ObjectData) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (*ObjectData) ToJson
func (_self *ObjectData) ToJson() (string, error)
Convert this type to a JSON encoded string.