ObjectReference
type ObjectReference
Reference to an object
Contains sufficient information to uniquely identify a specific object.
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 ObjectReference struct {
ObjectId *ObjectId
Version *Version
Digest *ObjectDigest
}
func ObjectReferenceFromBcs
func ObjectReferenceFromBcs(bcs []byte) (ObjectReference, error)
Create this type from BCS encoded bytes.
func ObjectReferenceFromJson
func ObjectReferenceFromJson(json string) (ObjectReference, error)
Create this type from a JSON encoded string.
func (*ObjectReference) Destroy
func (r *ObjectReference) Destroy()
func (ObjectReference) ToBcs
func (_self ObjectReference) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (ObjectReference) ToDisplayString
func (_self ObjectReference) 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 (ObjectReference) ToJson
func (_self ObjectReference) ToJson() (string, error)
Convert this type to a JSON encoded string.