Expand description
Generates Rust code from an Anchor IDL.
Modules§
Structs§
- Field
List Properties - Generator
- Generator
Options - Idl
- IdlAccount
- IdlAccounts
- IdlConst
- IdlEnum
Variant - IdlError
Code - IdlEvent
- IdlEvent
Field - IdlField
- IdlInstruction
- IdlPda
- IdlSeed
Account - IdlSeed
Arg - IdlSeed
Const - IdlState
- IdlType
Definition - Struct
Opts
Enums§
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.