ChangedObject
type ChangedObject
Input/output state of an object that was changed during execution
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 ChangedObject struct {
// Id of the object
ObjectId *ObjectId
// State of the object in the store prior to this transaction.
InputState ObjectIn
// State of the object in the store after this transaction.
OutputState ObjectOut
// Whether this object ID is created or deleted in this transaction. This information isn't
// required by the protocol but is useful for providing more detailed semantics on object
// changes.
IdOperation IdOperation
}
func ChangedObjectFromBcs
func ChangedObjectFromBcs(bcs []byte) (ChangedObject, error)
Create this type from BCS encoded bytes.
func ChangedObjectFromJson
func ChangedObjectFromJson(json string) (ChangedObject, error)
Create this type from a JSON encoded string.
func (*ChangedObject) Destroy
func (r *ChangedObject) Destroy()
func (ChangedObject) ToBcs
func (_self ChangedObject) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (ChangedObject) ToDisplayString
func (_self ChangedObject) 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 (ChangedObject) ToJson
func (_self ChangedObject) ToJson() (string, error)
Convert this type to a JSON encoded string.