Expand description
Generates Rust code from an Anchor IDL.
Structs§
- Field
List Properties - Generator
- Generator
Options - Idl
- IdlAccount
- IdlConst
- IdlDependency
- IdlDeployments
- IdlEnum
Variant - IdlError
Code - IdlEvent
- IdlField
- IdlInstruction
- IdlInstruction
Account - IdlInstruction
Accounts - IdlMetadata
- IdlPda
- IdlRepr
Modifier - IdlSeed
Account - IdlSeed
Arg - IdlSeed
Const - IdlType
Def - Struct
Opts
Enums§
- IdlArray
Len - IdlDefined
Fields - IdlGeneric
Arg - IdlInstruction
Account Item - IdlRepr
- IdlSeed
- IdlSerialization
- IdlType
- IdlType
DefGeneric - IdlType
DefTy
Constants§
- GEN_
VERSION - Version of anchor-idl.
- IDL_
SPEC - IDL specification Semantic Version
Functions§
- generate_
account - Generates an account state struct.
- generate_
account_ fields - Generates a list of [IdlAccountItem]s as a TokenStream.
- generate_
accounts - Generates account state structs.
- generate_
enum - Generates an enum.
- generate_
enum_ fields - Generates enum fields from a list of IdlFields.
- generate_
enum_ tuple_ types - Generates enum tuple types from a list of IdlTypes.
- generate_
event - Generates a struct.
- generate_
events - Generates event structs.
- 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_
defined_ fields_ list_ properties - 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.