Crate anchor_idl_tulip

Crate anchor_idl_tulip 

Source
Expand description

Generates Rust code from an Anchor IDL.

Modules§

file
pda
relations

Structs§

FieldListProperties
Generator
GeneratorOptions
Idl
IdlAccount
IdlAccounts
IdlConst
IdlEnumVariant
IdlErrorCode
IdlEvent
IdlEventField
IdlField
IdlInstruction
IdlPda
IdlSeedAccount
IdlSeedArg
IdlSeedConst
IdlState
IdlTypeDefinition
StructOpts

Enums§

EnumFields
IdlAccountItem
IdlSeed
IdlType
IdlTypeDefinitionTy

Constants§

GEN_VERSION
Version of anchor-idl.

Functions§

generate_account
Generates an account state struct.
generate_account_fields
Generates a list of IdlAccountItems as a TokenStream.
generate_accounts
Generates account state structs.
generate_enum
Generates an enum.
generate_fields
Generates struct fields from a list of IdlFields.
generate_ix_handler
Generates a single instruction handler.
generate_ix_handlers
Generates all instruction handlers.
generate_ix_structs
Generates instruction context structs.
generate_struct
Generates a struct.
generate_typedefs
Generates structs and enums.
get_field_list_properties
get_type_list_properties
get_type_properties
get_variant_list_properties
ty_to_rust_type
Converts an IdlType to a String of the Rust representation.