@aptos-labs/ts-sdk - v5.2.1
    Preparing search index...

    Type Alias MoveStruct

    A move struct

    type MoveStruct = {
        abilities: MoveAbility[];
        fields: MoveStructField[];
        generic_type_params: MoveFunctionGenericTypeParam[];
        is_enum: boolean;
        is_event: boolean;
        is_native: boolean;
        name: string;
    }
    Index

    Properties

    abilities: MoveAbility[]

    Abilities associated with the struct

    fields: MoveStructField[]

    Fields associated with the struct

    generic_type_params: MoveFunctionGenericTypeParam[]

    Generic types associated with the struct

    is_enum: boolean

    True if the struct is an enum (e.g. enum MyEnum { A, B, C }), false if it is a regular struct (e.g. struct MyStruct { a: u8, b: u8 }).

    is_event: boolean

    Whether the struct is a module event (aka v2 event). This will be false for v1 events because the value is derived from the #[event] attribute on the struct in the Move source code. This attribute is only relevant for v2 events.

    is_native: boolean

    Whether the struct is a native struct of Move

    name: string