Crate af_move_type

Crate af_move_type 

Source
Expand description

Defines the core standard for representing Move types off-chain and their type tags.

The core items are MoveType and MoveTypeTag. These are useful trait bounds to use when dealing with generic off-chain Move type representations. They are implemented for the primitive types that correspond to Move’s primitives (integers/bool). Also included is MoveVec, corresponding to vector and defining a pretty Display.

For Move structs (objects), MoveStruct should be used as it has an associated MoveStructTag. The MoveStruct derive macro is exported for automatically creating a MoveStructTag implementation from normal Rust struct declarations.

A specific instance of a Move type is represented by MoveInstance.

Modules§

otw
One-time-witness type.
vector

Structs§

AddressTypeTag
BoolTypeTag
MoveInstance
Represents an instance of a Move type.
StringTypeTag
U8TypeTag
U16TypeTag
U32TypeTag
U64TypeTag
U128TypeTag
U256TypeTag

Enums§

FromRawStructError
FromRawTypeError
ObjectError
Error for ObjectExt.
ParseStructTagError
ParseTypeTagError
StructTagError
TypeParamsError
TypeTagError

Traits§

HasCopy
HasDrop
HasKey
HasStore
MoveStruct
Trait marking a Move struct type. Has a specific way to construct a StructTag.
MoveStructTag
MoveType
Trait marking a Move data type. Has a specific way to construct a TypeTag.
MoveTypeTag
ObjectExt
Extract and parse a MoveStruct from a Sui object.
StaticAddress
Move struct for which the address of the package is known at compile time.
StaticModule
Move struct for which the module in the package is known at compile time.
StaticName
Move struct for which the name of object is known at compile time.
StaticStructTag
Move struct for which the struct tag can be derived at compile time.
StaticTypeParams
Move struct for which the type args of object are known at compile time.
StaticTypeTag
Move type for which the type tag can be derived at compile time.

Derive Macros§

MoveStruct
Derives af_move_type trait implementations for a type representing a Move struct.