Crate codama

Source

Macros§

combine_errors
Combine multiple results into a single result by combining errors. Note we could use recursion here but the tuple would be nested. E.g. (a, (b, c)) instead of (a, b, c).

Structs§

AccountBumpValueNode
AccountLinkNode
AccountNode
AccountValueNode
AmountTypeNode
ApplyCodamaTypeAttributesVisitor
ArgumentValueNode
ArrayTypeNode
ArrayValueNode
BooleanTypeNode
BooleanValueNode
BytesTypeNode
BytesValueNode
CamelCaseString
Codama
CombineModulesVisitor
CombineTypesVisitor
ComposeVisitor
Compose multiple visitors into one.
ConditionalValueNode
ConstantDiscriminatorNode
ConstantPdaSeedNode
ConstantValueNode
CrateKorok
CrateStore
DateTimeTypeNode
DefaultPlugin
DefinedTypeLinkNode
DefinedTypeNode
Docs
EnumEmptyVariantTypeNode
EnumKorok
EnumStructVariantTypeNode
EnumTupleVariantTypeNode
EnumTypeNode
EnumValueNode
EnumVariantKorok
ErrorNode
FieldDiscriminatorNode
FieldKorok
FieldsKorok
FileModuleKorok
FileModuleStore
FilterItemsVisitor
FixedCountNode
FixedSizeTypeNode
HiddenPrefixTypeNode
HiddenSuffixTypeNode
IdentityValueNode
InstructionAccountLinkNode
InstructionAccountNode
InstructionArgumentLinkNode
InstructionArgumentNode
InstructionByteDeltaNode
InstructionLinkNode
InstructionNode
InstructionRemainingAccountsNode
MapEntryValueNode
MapTypeNode
MapValueNode
ModuleKorok
NestedTypeLeaf
NoneValueNode
NumberTypeNode
NumberValueNode
OptionTypeNode
PayerValueNode
PdaLinkNode
PdaNode
PdaSeedValueNode
PdaValueNode
PostOffsetTypeNode
PreOffsetTypeNode
PrefixedCountNode
ProgramIdValueNode
ProgramLinkNode
ProgramNode
PublicKeyTypeNode
PublicKeyValueNode
RemainderCountNode
RemainderOptionTypeNode
ResolverValueNode
RootKorok
RootNode
RootStore
SentinelTypeNode
SetAccountsVisitor
SetBorshTypesVisitor
SetDefinedTypesVisitor
SetErrorsVisitor
SetInstructionsVisitor
SetLinkTypesVisitor
SetProgramMetadataVisitor
Fill program metadata using the Cargo.toml manifest and the solana_program::declare_id! macro.
SetTypeNode
SetValueNode
SizeDiscriminatorNode
SizePrefixTypeNode
SolAmountTypeNode
SomeValueNode
StringTypeNode
StringValueNode
StructFieldTypeNode
StructFieldValueNode
StructKorok
StructTypeNode
StructValueNode
TupleTypeNode
TupleValueNode
UniformVisitor
Use the same callback function on all koroks visited.
UnsupportedItemKorok
VariablePdaSeedNode
ZeroableOptionTypeNode

Enums§

BytesEncoding
CodamaError
CombineTypesVisitorParent
ConditionNode
ContextualValueNode
CountNode
DefaultValueStrategy
DiscriminatorNode
Endian
EnumVariantData
EnumVariantTypeNode
InstructionByteDeltaNodeValue
InstructionInputValueNode
InstructionOptionalAccountStrategy
InstructionRemainingAccountsNodeValue
IsAccountSigner
ItemKorok
Korok
KorokMut
LinkNode
NestedTypeNode
Node
Number
NumberFormat
PdaSeedNode
PdaSeedValueValueNode
PdaValue
PostOffsetStrategy
PreOffsetStrategy
RegisteredContextualValueNode
RegisteredTypeNode
RegisteredValueNode
ResolverDependency
TypeNode
ValueNode

Traits§

CombineErrors
HasKind
IteratorCombineErrors
KorokPlugin
KorokTrait
KorokVisitable
KorokVisitor
NestedTypeNodeTrait
NodeTrait
NodeUnionTrait
TypeNodeTrait
TypeNodeUnionTrait

Functions§

get_closest_manifest_path
Given a path, get the closest available path to a Cargo.toml file. E.g. “my/crate/Cargo.toml” returns “my/crate/Cargo.toml” E.g. “my/crate” may return “my/crate/Cargo.toml” E.g. “my/workspace/crate” may return “my/workspace/Cargo.toml”
get_default_visitor
get_message_from_thiserror
resolve_plugins
Reduce all plugins into a single function that runs them in sequence.

Type Aliases§

CodamaResult
ResolvePluginsResult

Attribute Macros§

codama

Derive Macros§

CodamaAccount
CodamaAccounts
CodamaErrors
CodamaInstruction
CodamaInstructions
CodamaType