ObjectInterface
type ObjectInterface
An object on the IOTA blockchain
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 ObjectInterface interface {
// Try to interpret this object as a move package
AsOptPackage() **MovePackage
// Try to interpret this object as a move struct
AsOptStruct() *MoveStruct
// Interpret this object as a move package
AsPackage() *MovePackage
// Interpret this object as a move struct
AsStruct() MoveStruct
// Return this object's data
Data() *ObjectData
// Calculate the digest of this `Object`
//
// This is done by hashing the BCS bytes of this `Object` prefixed
Digest() *ObjectDigest
// Return this object's id
Id() *ObjectId
// Return this object's reference
ObjectRef() ObjectReference
// Return this object's type
ObjectType() *ObjectType
// Return this object's owner
Owner() *Owner
// Return the digest of the transaction that last modified this object
PreviousTransaction() *TransactionDigest
// Return the storage rebate locked in this object
//
// Storage rebates are credited to the gas coin used in a transaction that deletes this object.
StorageRebate() uint64
// Convert this type to BCS encoded bytes.
ToBcs() ([]byte, error)
// 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.
ToDisplayString() string
// Convert this type to a JSON encoded string.
ToJson() (string, error)
// Return this object's version
Version() *Version
}