Skip to main content

MoveDatatype

The generic representation of a Move datatype (either a struct or an enum) which exposes common fields and information (module, name, abilities, type parameters etc.) that is shared across them.

type MoveDatatype implements IMoveDatatype {
module: MoveModule!
name: String!
abilities: [MoveAbility!]
typeParameters: [MoveStructTypeParameter!]
asMoveEnum: MoveEnum
asMoveStruct: MoveStruct
}

Fields

MoveDatatype.module ● MoveModule! non-null object

MoveDatatype.name ● String! non-null scalar

MoveDatatype.abilities ● [MoveAbility!] list enum

MoveDatatype.typeParameters ● [MoveStructTypeParameter!] list object

MoveDatatype.asMoveEnum ● MoveEnum object

MoveDatatype.asMoveStruct ● MoveStruct object

Interfaces

IMoveDatatype interface

Interface implemented by all GraphQL types that represent a Move datatype (either structs or enums). This interface is used to provide a way to access fields that are shared by both structs and enums, e.g., the module that the datatype belongs to, the name of the datatype, type parameters etc.

Member Of

MoveDatatypeConnection object ● MoveDatatypeEdge object ● MoveModule object