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§
Structs§
- Address
Type Tag - Bool
Type Tag - Move
Instance - Represents an instance of a Move type.
- String
Type Tag - U8Type
Tag - U16Type
Tag - U32Type
Tag - U64Type
Tag - U128
Type Tag - U256
Type Tag
Enums§
- From
RawStruct Error - From
RawType Error - Object
Error - Error for
ObjectExt. - Parse
Struct TagError - Parse
Type TagError - Struct
TagError - Type
Params Error - Type
TagError
Traits§
- HasCopy
- HasDrop
- HasKey
- HasStore
- Move
Struct - Trait marking a Move struct type. Has a specific way to construct a
StructTag. - Move
Struct Tag - Move
Type - Trait marking a Move data type. Has a specific way to construct a
TypeTag. - Move
Type Tag - Object
Ext - Extract and parse a
MoveStructfrom a Sui object. - Static
Address - Move struct for which the address of the package is known at compile time.
- Static
Module - Move struct for which the module in the package is known at compile time.
- Static
Name - Move struct for which the name of object is known at compile time.
- Static
Struct Tag - Move struct for which the struct tag can be derived at compile time.
- Static
Type Params - Move struct for which the type args of object are known at compile time.
- Static
Type Tag - Move type for which the type tag can be derived at compile time.
Derive Macros§
- Move
Struct - Derives
af_move_typetrait implementations for a type representing a Move struct.