pub enum Node {
Show 18 variants
ContextualValue(RegisteredContextualValueNode),
Count(CountNode),
Discriminator(DiscriminatorNode),
Link(LinkNode),
PdaSeed(PdaSeedNode),
Type(RegisteredTypeNode),
Value(RegisteredValueNode),
Account(AccountNode),
DefinedType(DefinedTypeNode),
Error(ErrorNode),
Instruction(InstructionNode),
InstructionAccount(InstructionAccountNode),
InstructionArgument(InstructionArgumentNode),
InstructionByteDelta(InstructionByteDeltaNode),
InstructionRemainingAccounts(InstructionRemainingAccountsNode),
Pda(PdaNode),
Program(ProgramNode),
Root(RootNode),
}Variants§
ContextualValue(RegisteredContextualValueNode)
Count(CountNode)
Discriminator(DiscriminatorNode)
Link(LinkNode)
PdaSeed(PdaSeedNode)
Type(RegisteredTypeNode)
Value(RegisteredValueNode)
Account(AccountNode)
DefinedType(DefinedTypeNode)
Error(ErrorNode)
Instruction(InstructionNode)
InstructionAccount(InstructionAccountNode)
InstructionArgument(InstructionArgumentNode)
InstructionByteDelta(InstructionByteDeltaNode)
InstructionRemainingAccounts(InstructionRemainingAccountsNode)
Pda(PdaNode)
Program(ProgramNode)
Root(RootNode)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AccountBumpValueNode> for Node
impl From<AccountBumpValueNode> for Node
Source§fn from(val: AccountBumpValueNode) -> Self
fn from(val: AccountBumpValueNode) -> Self
Converts to this type from the input type.
Source§impl From<AccountLinkNode> for Node
impl From<AccountLinkNode> for Node
Source§fn from(val: AccountLinkNode) -> Self
fn from(val: AccountLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<AccountNode> for Node
impl From<AccountNode> for Node
Source§fn from(value: AccountNode) -> Self
fn from(value: AccountNode) -> Self
Converts to this type from the input type.
Source§impl From<AccountValueNode> for Node
impl From<AccountValueNode> for Node
Source§fn from(val: AccountValueNode) -> Self
fn from(val: AccountValueNode) -> Self
Converts to this type from the input type.
Source§impl From<AmountTypeNode> for Node
impl From<AmountTypeNode> for Node
Source§fn from(val: AmountTypeNode) -> Self
fn from(val: AmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<ArgumentValueNode> for Node
impl From<ArgumentValueNode> for Node
Source§fn from(val: ArgumentValueNode) -> Self
fn from(val: ArgumentValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ArrayTypeNode> for Node
impl From<ArrayTypeNode> for Node
Source§fn from(val: ArrayTypeNode) -> Self
fn from(val: ArrayTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<ArrayValueNode> for Node
impl From<ArrayValueNode> for Node
Source§fn from(val: ArrayValueNode) -> Self
fn from(val: ArrayValueNode) -> Self
Converts to this type from the input type.
Source§impl From<BooleanTypeNode> for Node
impl From<BooleanTypeNode> for Node
Source§fn from(val: BooleanTypeNode) -> Self
fn from(val: BooleanTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<BooleanValueNode> for Node
impl From<BooleanValueNode> for Node
Source§fn from(val: BooleanValueNode) -> Self
fn from(val: BooleanValueNode) -> Self
Converts to this type from the input type.
Source§impl From<BytesTypeNode> for Node
impl From<BytesTypeNode> for Node
Source§fn from(val: BytesTypeNode) -> Self
fn from(val: BytesTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<BytesValueNode> for Node
impl From<BytesValueNode> for Node
Source§fn from(val: BytesValueNode) -> Self
fn from(val: BytesValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ConditionalValueNode> for Node
impl From<ConditionalValueNode> for Node
Source§fn from(val: ConditionalValueNode) -> Self
fn from(val: ConditionalValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ConstantDiscriminatorNode> for Node
impl From<ConstantDiscriminatorNode> for Node
Source§fn from(val: ConstantDiscriminatorNode) -> Self
fn from(val: ConstantDiscriminatorNode) -> Self
Converts to this type from the input type.
Source§impl From<ConstantPdaSeedNode> for Node
impl From<ConstantPdaSeedNode> for Node
Source§fn from(val: ConstantPdaSeedNode) -> Self
fn from(val: ConstantPdaSeedNode) -> Self
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for Node
impl From<ConstantValueNode> for Node
Source§fn from(val: ConstantValueNode) -> Self
fn from(val: ConstantValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ContextualValueNode> for Node
impl From<ContextualValueNode> for Node
Source§fn from(node: ContextualValueNode) -> Self
fn from(node: ContextualValueNode) -> Self
Converts to this type from the input type.
Source§impl From<DateTimeTypeNode> for Node
impl From<DateTimeTypeNode> for Node
Source§fn from(val: DateTimeTypeNode) -> Self
fn from(val: DateTimeTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<DefinedTypeLinkNode> for Node
impl From<DefinedTypeLinkNode> for Node
Source§fn from(val: DefinedTypeLinkNode) -> Self
fn from(val: DefinedTypeLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<DefinedTypeNode> for Node
impl From<DefinedTypeNode> for Node
Source§fn from(value: DefinedTypeNode) -> Self
fn from(value: DefinedTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<DiscriminatorNode> for Node
impl From<DiscriminatorNode> for Node
Source§fn from(value: DiscriminatorNode) -> Self
fn from(value: DiscriminatorNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumEmptyVariantTypeNode> for Node
impl From<EnumEmptyVariantTypeNode> for Node
Source§fn from(val: EnumEmptyVariantTypeNode) -> Self
fn from(val: EnumEmptyVariantTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumStructVariantTypeNode> for Node
impl From<EnumStructVariantTypeNode> for Node
Source§fn from(val: EnumStructVariantTypeNode) -> Self
fn from(val: EnumStructVariantTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumTupleVariantTypeNode> for Node
impl From<EnumTupleVariantTypeNode> for Node
Source§fn from(val: EnumTupleVariantTypeNode) -> Self
fn from(val: EnumTupleVariantTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumTypeNode> for Node
impl From<EnumTypeNode> for Node
Source§fn from(val: EnumTypeNode) -> Self
fn from(val: EnumTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumValueNode> for Node
impl From<EnumValueNode> for Node
Source§fn from(val: EnumValueNode) -> Self
fn from(val: EnumValueNode) -> Self
Converts to this type from the input type.
Source§impl From<FieldDiscriminatorNode> for Node
impl From<FieldDiscriminatorNode> for Node
Source§fn from(val: FieldDiscriminatorNode) -> Self
fn from(val: FieldDiscriminatorNode) -> Self
Converts to this type from the input type.
Source§impl From<FixedCountNode> for Node
impl From<FixedCountNode> for Node
Source§fn from(val: FixedCountNode) -> Self
fn from(val: FixedCountNode) -> Self
Converts to this type from the input type.
Source§impl From<FixedSizeTypeNode<TypeNode>> for Node
impl From<FixedSizeTypeNode<TypeNode>> for Node
Source§fn from(node: FixedSizeTypeNode<TypeNode>) -> Self
fn from(node: FixedSizeTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<HiddenPrefixTypeNode<TypeNode>> for Node
impl From<HiddenPrefixTypeNode<TypeNode>> for Node
Source§fn from(val: HiddenPrefixTypeNode<TypeNode>) -> Self
fn from(val: HiddenPrefixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<HiddenSuffixTypeNode<TypeNode>> for Node
impl From<HiddenSuffixTypeNode<TypeNode>> for Node
Source§fn from(val: HiddenSuffixTypeNode<TypeNode>) -> Self
fn from(val: HiddenSuffixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<IdentityValueNode> for Node
impl From<IdentityValueNode> for Node
Source§fn from(val: IdentityValueNode) -> Self
fn from(val: IdentityValueNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionAccountLinkNode> for Node
impl From<InstructionAccountLinkNode> for Node
Source§fn from(val: InstructionAccountLinkNode) -> Self
fn from(val: InstructionAccountLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionAccountNode> for Node
impl From<InstructionAccountNode> for Node
Source§fn from(value: InstructionAccountNode) -> Self
fn from(value: InstructionAccountNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionArgumentLinkNode> for Node
impl From<InstructionArgumentLinkNode> for Node
Source§fn from(val: InstructionArgumentLinkNode) -> Self
fn from(val: InstructionArgumentLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionArgumentNode> for Node
impl From<InstructionArgumentNode> for Node
Source§fn from(value: InstructionArgumentNode) -> Self
fn from(value: InstructionArgumentNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionByteDeltaNode> for Node
impl From<InstructionByteDeltaNode> for Node
Source§fn from(value: InstructionByteDeltaNode) -> Self
fn from(value: InstructionByteDeltaNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionLinkNode> for Node
impl From<InstructionLinkNode> for Node
Source§fn from(val: InstructionLinkNode) -> Self
fn from(val: InstructionLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionNode> for Node
impl From<InstructionNode> for Node
Source§fn from(value: InstructionNode) -> Self
fn from(value: InstructionNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionRemainingAccountsNode> for Node
impl From<InstructionRemainingAccountsNode> for Node
Source§fn from(value: InstructionRemainingAccountsNode) -> Self
fn from(value: InstructionRemainingAccountsNode) -> Self
Converts to this type from the input type.
Source§impl From<MapEntryValueNode> for Node
impl From<MapEntryValueNode> for Node
Source§fn from(val: MapEntryValueNode) -> Self
fn from(val: MapEntryValueNode) -> Self
Converts to this type from the input type.
Source§impl From<MapTypeNode> for Node
impl From<MapTypeNode> for Node
Source§fn from(val: MapTypeNode) -> Self
fn from(val: MapTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<MapValueNode> for Node
impl From<MapValueNode> for Node
Source§fn from(val: MapValueNode) -> Self
fn from(val: MapValueNode) -> Self
Converts to this type from the input type.
Source§impl From<NoneValueNode> for Node
impl From<NoneValueNode> for Node
Source§fn from(val: NoneValueNode) -> Self
fn from(val: NoneValueNode) -> Self
Converts to this type from the input type.
Source§impl From<NumberTypeNode> for Node
impl From<NumberTypeNode> for Node
Source§fn from(val: NumberTypeNode) -> Self
fn from(val: NumberTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<NumberValueNode> for Node
impl From<NumberValueNode> for Node
Source§fn from(val: NumberValueNode) -> Self
fn from(val: NumberValueNode) -> Self
Converts to this type from the input type.
Source§impl From<OptionTypeNode> for Node
impl From<OptionTypeNode> for Node
Source§fn from(val: OptionTypeNode) -> Self
fn from(val: OptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<PayerValueNode> for Node
impl From<PayerValueNode> for Node
Source§fn from(val: PayerValueNode) -> Self
fn from(val: PayerValueNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaLinkNode> for Node
impl From<PdaLinkNode> for Node
Source§fn from(val: PdaLinkNode) -> Self
fn from(val: PdaLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaSeedNode> for Node
impl From<PdaSeedNode> for Node
Source§fn from(value: PdaSeedNode) -> Self
fn from(value: PdaSeedNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaSeedValueNode> for Node
impl From<PdaSeedValueNode> for Node
Source§fn from(val: PdaSeedValueNode) -> Self
fn from(val: PdaSeedValueNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaValueNode> for Node
impl From<PdaValueNode> for Node
Source§fn from(val: PdaValueNode) -> Self
fn from(val: PdaValueNode) -> Self
Converts to this type from the input type.
Source§impl From<PostOffsetTypeNode<TypeNode>> for Node
impl From<PostOffsetTypeNode<TypeNode>> for Node
Source§fn from(val: PostOffsetTypeNode<TypeNode>) -> Self
fn from(val: PostOffsetTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<PreOffsetTypeNode<TypeNode>> for Node
impl From<PreOffsetTypeNode<TypeNode>> for Node
Source§fn from(val: PreOffsetTypeNode<TypeNode>) -> Self
fn from(val: PreOffsetTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<PrefixedCountNode> for Node
impl From<PrefixedCountNode> for Node
Source§fn from(val: PrefixedCountNode) -> Self
fn from(val: PrefixedCountNode) -> Self
Converts to this type from the input type.
Source§impl From<ProgramIdValueNode> for Node
impl From<ProgramIdValueNode> for Node
Source§fn from(val: ProgramIdValueNode) -> Self
fn from(val: ProgramIdValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ProgramLinkNode> for Node
impl From<ProgramLinkNode> for Node
Source§fn from(val: ProgramLinkNode) -> Self
fn from(val: ProgramLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<ProgramNode> for Node
impl From<ProgramNode> for Node
Source§fn from(value: ProgramNode) -> Self
fn from(value: ProgramNode) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyTypeNode> for Node
impl From<PublicKeyTypeNode> for Node
Source§fn from(val: PublicKeyTypeNode) -> Self
fn from(val: PublicKeyTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyValueNode> for Node
impl From<PublicKeyValueNode> for Node
Source§fn from(val: PublicKeyValueNode) -> Self
fn from(val: PublicKeyValueNode) -> Self
Converts to this type from the input type.
Source§impl From<RegisteredContextualValueNode> for Node
impl From<RegisteredContextualValueNode> for Node
Source§fn from(value: RegisteredContextualValueNode) -> Self
fn from(value: RegisteredContextualValueNode) -> Self
Converts to this type from the input type.
Source§impl From<RegisteredTypeNode> for Node
impl From<RegisteredTypeNode> for Node
Source§fn from(value: RegisteredTypeNode) -> Self
fn from(value: RegisteredTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<RegisteredValueNode> for Node
impl From<RegisteredValueNode> for Node
Source§fn from(value: RegisteredValueNode) -> Self
fn from(value: RegisteredValueNode) -> Self
Converts to this type from the input type.
Source§impl From<RemainderCountNode> for Node
impl From<RemainderCountNode> for Node
Source§fn from(val: RemainderCountNode) -> Self
fn from(val: RemainderCountNode) -> Self
Converts to this type from the input type.
Source§impl From<RemainderOptionTypeNode> for Node
impl From<RemainderOptionTypeNode> for Node
Source§fn from(val: RemainderOptionTypeNode) -> Self
fn from(val: RemainderOptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<ResolverValueNode> for Node
impl From<ResolverValueNode> for Node
Source§fn from(val: ResolverValueNode) -> Self
fn from(val: ResolverValueNode) -> Self
Converts to this type from the input type.
Source§impl From<SentinelTypeNode<TypeNode>> for Node
impl From<SentinelTypeNode<TypeNode>> for Node
Source§fn from(val: SentinelTypeNode<TypeNode>) -> Self
fn from(val: SentinelTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<SetTypeNode> for Node
impl From<SetTypeNode> for Node
Source§fn from(val: SetTypeNode) -> Self
fn from(val: SetTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<SetValueNode> for Node
impl From<SetValueNode> for Node
Source§fn from(val: SetValueNode) -> Self
fn from(val: SetValueNode) -> Self
Converts to this type from the input type.
Source§impl From<SizeDiscriminatorNode> for Node
impl From<SizeDiscriminatorNode> for Node
Source§fn from(val: SizeDiscriminatorNode) -> Self
fn from(val: SizeDiscriminatorNode) -> Self
Converts to this type from the input type.
Source§impl From<SizePrefixTypeNode<TypeNode>> for Node
impl From<SizePrefixTypeNode<TypeNode>> for Node
Source§fn from(val: SizePrefixTypeNode<TypeNode>) -> Self
fn from(val: SizePrefixTypeNode<TypeNode>) -> Self
Converts to this type from the input type.
Source§impl From<SolAmountTypeNode> for Node
impl From<SolAmountTypeNode> for Node
Source§fn from(val: SolAmountTypeNode) -> Self
fn from(val: SolAmountTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<SomeValueNode> for Node
impl From<SomeValueNode> for Node
Source§fn from(val: SomeValueNode) -> Self
fn from(val: SomeValueNode) -> Self
Converts to this type from the input type.
Source§impl From<StringTypeNode> for Node
impl From<StringTypeNode> for Node
Source§fn from(val: StringTypeNode) -> Self
fn from(val: StringTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<StringValueNode> for Node
impl From<StringValueNode> for Node
Source§fn from(val: StringValueNode) -> Self
fn from(val: StringValueNode) -> Self
Converts to this type from the input type.
Source§impl From<StructFieldTypeNode> for Node
impl From<StructFieldTypeNode> for Node
Source§fn from(val: StructFieldTypeNode) -> Self
fn from(val: StructFieldTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<StructFieldValueNode> for Node
impl From<StructFieldValueNode> for Node
Source§fn from(val: StructFieldValueNode) -> Self
fn from(val: StructFieldValueNode) -> Self
Converts to this type from the input type.
Source§impl From<StructTypeNode> for Node
impl From<StructTypeNode> for Node
Source§fn from(val: StructTypeNode) -> Self
fn from(val: StructTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<StructValueNode> for Node
impl From<StructValueNode> for Node
Source§fn from(val: StructValueNode) -> Self
fn from(val: StructValueNode) -> Self
Converts to this type from the input type.
Source§impl From<TupleTypeNode> for Node
impl From<TupleTypeNode> for Node
Source§fn from(val: TupleTypeNode) -> Self
fn from(val: TupleTypeNode) -> Self
Converts to this type from the input type.
Source§impl From<TupleValueNode> for Node
impl From<TupleValueNode> for Node
Source§fn from(val: TupleValueNode) -> Self
fn from(val: TupleValueNode) -> Self
Converts to this type from the input type.
Source§impl From<VariablePdaSeedNode> for Node
impl From<VariablePdaSeedNode> for Node
Source§fn from(val: VariablePdaSeedNode) -> Self
fn from(val: VariablePdaSeedNode) -> Self
Converts to this type from the input type.
Source§impl From<ZeroableOptionTypeNode> for Node
impl From<ZeroableOptionTypeNode> for Node
Source§fn from(val: ZeroableOptionTypeNode) -> Self
fn from(val: ZeroableOptionTypeNode) -> Self
Converts to this type from the input type.
Source§impl<T: TypeNodeTrait> TryFrom<NestedTypeNode<T>> for Node
impl<T: TypeNodeTrait> TryFrom<NestedTypeNode<T>> for Node
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(node: NestedTypeNode<T>) -> CodamaResult<Self>
fn try_from(node: NestedTypeNode<T>) -> CodamaResult<Self>
Performs the conversion.
Source§impl TryFrom<Node> for EnumVariantTypeNode
impl TryFrom<Node> for EnumVariantTypeNode
Source§impl<T: TypeNodeTrait> TryFrom<Node> for NestedTypeNode<T>
impl<T: TypeNodeTrait> TryFrom<Node> for NestedTypeNode<T>
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(node: Node) -> CodamaResult<Self>
fn try_from(node: Node) -> CodamaResult<Self>
Performs the conversion.
impl NodeUnionTrait for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more