Skip to main content

IdOperation

type IdOperation​

Defines what happened to an ObjectId 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 IdOperation uint8
const (
IdOperationNone IdOperation = 0
IdOperationCreated IdOperation = 1
IdOperationDeleted IdOperation = 2
)

func IdOperationFromBcs​

func IdOperationFromBcs(bcs []byte) (IdOperation, error)

Create this type from BCS encoded bytes.

func IdOperationFromJson​

func IdOperationFromJson(json string) (IdOperation, error)

Create this type from a JSON encoded string.

func (IdOperation) ToBcs​

func (_self IdOperation) ToBcs() ([]byte, error)

Convert this type to BCS encoded bytes.

func (IdOperation) ToDisplayString​

func (_self IdOperation) 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 (IdOperation) ToJson​

func (_self IdOperation) ToJson() (string, error)

Convert this type to a JSON encoded string.