DatatypeDescriptor

Describes a Move Datatype.

Types

Link copied to clipboard
sealed class DatatypeKind

Properties

Link copied to clipboard
abstract val abilities: List<Ability>

This type's abilities

Link copied to clipboard
abstract val definingId: String?

PackageId of the package where this Datatype is defined.

Link copied to clipboard
abstract val fields: List<FieldDescriptor>

Set of fields if this Datatype is a struct.

Link copied to clipboard

Indicates whether this datatype is a 'STRUCT' or an 'ENUM'

Link copied to clipboard
abstract val module: String?

Name of the module where this Datatype is defined

Link copied to clipboard
abstract val name: String?

Name of this Datatype

Link copied to clipboard

Returns the field-presence view for this DatatypeDescriptor instance.

Link copied to clipboard
abstract val typeName: String?

Fully qualified name of this Datatype.

Link copied to clipboard

Ability constraints and phantom status for this type's generic type parameters

Link copied to clipboard

Set of variants if this Datatype is an enum.

Functions

Link copied to clipboard
fun DatatypeDescriptor.copy(body: <Error class: unknown class>.() -> Unit = {}): DatatypeDescriptor

Copies the original message, including unknown fields.