Module ast

Module ast 

Source

Structs§

ComputedFieldSpec
Specification for a computed/derived field
Condition
ConditionExpr
Simple condition expression (Level 1 - basic comparisons only)
EntitySection
Represents a logical section/group of fields in the entity
FieldPath
FieldTypeInfo
Language-agnostic type information for fields
IdentitySpec
IdlAccountSnapshot
Account definition from IDL
IdlArrayTypeSnapshot
Array type representation
IdlDefinedTypeSnapshot
Defined/custom type reference
IdlEnumVariantSnapshot
Enum variant
IdlErrorSnapshot
Error definition
IdlEventSnapshot
Event definition
IdlFieldSnapshot
Field definition (used in instructions, accounts, types)
IdlInstructionAccountSnapshot
Account argument in an instruction
IdlInstructionSnapshot
Instruction definition from IDL
IdlOptionTypeSnapshot
Option type representation
IdlSnapshot
Snapshot of an Anchor IDL for embedding in the AST Contains all information needed to generate parsers and SDK types
IdlTypeDefSnapshot
Type definition (struct or enum)
IdlVecTypeSnapshot
Vec type representation
InstructionHook
Declarative instruction hook specification
LookupIndexSpec
ResolvedField
A resolved field within a complex type
ResolvedStructType
Resolved structure type with field information from IDL
ResolverHook
Declarative resolver hook specification
SerializableFieldMapping
Serializable version of FieldMapping without phantom types
SerializableHandlerSpec
Serializable version of HandlerSpec without phantom types
SerializableStreamSpec
Serializable version of StreamSpec without phantom types
TypedFieldMapping
TypedHandlerSpec
TypedStreamSpec

Enums§

BaseType
Language-agnostic base type classification
BinaryOp
Binary operators for computed expressions
ComparisonOp
ComputeFunction
ComputedExpr
AST for computed field expressions Supports a subset of Rust expressions needed for computed fields:
ConditionOp
HookAction
IdlArrayElementSnapshot
Array element (can be type or size)
IdlDefinedInnerSnapshot
Inner defined type (can be named or simple string)
IdlTypeDefKindSnapshot
Type definition kind (struct or enum)
IdlTypeSnapshot
Type representation from IDL
KeyResolutionStrategy
LogicalOp
MappingSource
ParsedCondition
PopulationStrategy
ResolverStrategy
SourceSpec
Transformation
UnaryOp
Unary operators for computed expressions

Traits§

FieldAccessor