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<Node, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Node, <__D as Deserializer<'de>>::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) -> Node
fn from(val: AccountBumpValueNode) -> Node
Converts to this type from the input type.
Source§impl From<AccountLinkNode> for Node
impl From<AccountLinkNode> for Node
Source§fn from(val: AccountLinkNode) -> Node
fn from(val: AccountLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<AccountNode> for Node
impl From<AccountNode> for Node
Source§fn from(value: AccountNode) -> Node
fn from(value: AccountNode) -> Node
Converts to this type from the input type.
Source§impl From<AccountValueNode> for Node
impl From<AccountValueNode> for Node
Source§fn from(val: AccountValueNode) -> Node
fn from(val: AccountValueNode) -> Node
Converts to this type from the input type.
Source§impl From<AmountTypeNode> for Node
impl From<AmountTypeNode> for Node
Source§fn from(val: AmountTypeNode) -> Node
fn from(val: AmountTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<ArgumentValueNode> for Node
impl From<ArgumentValueNode> for Node
Source§fn from(val: ArgumentValueNode) -> Node
fn from(val: ArgumentValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ArrayTypeNode> for Node
impl From<ArrayTypeNode> for Node
Source§fn from(val: ArrayTypeNode) -> Node
fn from(val: ArrayTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<ArrayValueNode> for Node
impl From<ArrayValueNode> for Node
Source§fn from(val: ArrayValueNode) -> Node
fn from(val: ArrayValueNode) -> Node
Converts to this type from the input type.
Source§impl From<BooleanTypeNode> for Node
impl From<BooleanTypeNode> for Node
Source§fn from(val: BooleanTypeNode) -> Node
fn from(val: BooleanTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<BooleanValueNode> for Node
impl From<BooleanValueNode> for Node
Source§fn from(val: BooleanValueNode) -> Node
fn from(val: BooleanValueNode) -> Node
Converts to this type from the input type.
Source§impl From<BytesTypeNode> for Node
impl From<BytesTypeNode> for Node
Source§fn from(val: BytesTypeNode) -> Node
fn from(val: BytesTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<BytesValueNode> for Node
impl From<BytesValueNode> for Node
Source§fn from(val: BytesValueNode) -> Node
fn from(val: BytesValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ConditionalValueNode> for Node
impl From<ConditionalValueNode> for Node
Source§fn from(val: ConditionalValueNode) -> Node
fn from(val: ConditionalValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ConstantDiscriminatorNode> for Node
impl From<ConstantDiscriminatorNode> for Node
Source§fn from(val: ConstantDiscriminatorNode) -> Node
fn from(val: ConstantDiscriminatorNode) -> Node
Converts to this type from the input type.
Source§impl From<ConstantPdaSeedNode> for Node
impl From<ConstantPdaSeedNode> for Node
Source§fn from(val: ConstantPdaSeedNode) -> Node
fn from(val: ConstantPdaSeedNode) -> Node
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for Node
impl From<ConstantValueNode> for Node
Source§fn from(val: ConstantValueNode) -> Node
fn from(val: ConstantValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ContextualValueNode> for Node
impl From<ContextualValueNode> for Node
Source§fn from(node: ContextualValueNode) -> Node
fn from(node: ContextualValueNode) -> Node
Converts to this type from the input type.
Source§impl From<DateTimeTypeNode> for Node
impl From<DateTimeTypeNode> for Node
Source§fn from(val: DateTimeTypeNode) -> Node
fn from(val: DateTimeTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<DefinedTypeLinkNode> for Node
impl From<DefinedTypeLinkNode> for Node
Source§fn from(val: DefinedTypeLinkNode) -> Node
fn from(val: DefinedTypeLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<DefinedTypeNode> for Node
impl From<DefinedTypeNode> for Node
Source§fn from(value: DefinedTypeNode) -> Node
fn from(value: DefinedTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<DiscriminatorNode> for Node
impl From<DiscriminatorNode> for Node
Source§fn from(value: DiscriminatorNode) -> Node
fn from(value: DiscriminatorNode) -> Node
Converts to this type from the input type.
Source§impl From<EnumEmptyVariantTypeNode> for Node
impl From<EnumEmptyVariantTypeNode> for Node
Source§fn from(val: EnumEmptyVariantTypeNode) -> Node
fn from(val: EnumEmptyVariantTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<EnumStructVariantTypeNode> for Node
impl From<EnumStructVariantTypeNode> for Node
Source§fn from(val: EnumStructVariantTypeNode) -> Node
fn from(val: EnumStructVariantTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<EnumTupleVariantTypeNode> for Node
impl From<EnumTupleVariantTypeNode> for Node
Source§fn from(val: EnumTupleVariantTypeNode) -> Node
fn from(val: EnumTupleVariantTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<EnumTypeNode> for Node
impl From<EnumTypeNode> for Node
Source§fn from(val: EnumTypeNode) -> Node
fn from(val: EnumTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<EnumValueNode> for Node
impl From<EnumValueNode> for Node
Source§fn from(val: EnumValueNode) -> Node
fn from(val: EnumValueNode) -> Node
Converts to this type from the input type.
Source§impl From<FieldDiscriminatorNode> for Node
impl From<FieldDiscriminatorNode> for Node
Source§fn from(val: FieldDiscriminatorNode) -> Node
fn from(val: FieldDiscriminatorNode) -> Node
Converts to this type from the input type.
Source§impl From<FixedCountNode> for Node
impl From<FixedCountNode> for Node
Source§fn from(val: FixedCountNode) -> Node
fn from(val: FixedCountNode) -> Node
Converts to this type from the input type.
Source§impl From<IdentityValueNode> for Node
impl From<IdentityValueNode> for Node
Source§fn from(val: IdentityValueNode) -> Node
fn from(val: IdentityValueNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionAccountLinkNode> for Node
impl From<InstructionAccountLinkNode> for Node
Source§fn from(val: InstructionAccountLinkNode) -> Node
fn from(val: InstructionAccountLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionAccountNode> for Node
impl From<InstructionAccountNode> for Node
Source§fn from(value: InstructionAccountNode) -> Node
fn from(value: InstructionAccountNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionArgumentLinkNode> for Node
impl From<InstructionArgumentLinkNode> for Node
Source§fn from(val: InstructionArgumentLinkNode) -> Node
fn from(val: InstructionArgumentLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionArgumentNode> for Node
impl From<InstructionArgumentNode> for Node
Source§fn from(value: InstructionArgumentNode) -> Node
fn from(value: InstructionArgumentNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionByteDeltaNode> for Node
impl From<InstructionByteDeltaNode> for Node
Source§fn from(value: InstructionByteDeltaNode) -> Node
fn from(value: InstructionByteDeltaNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionLinkNode> for Node
impl From<InstructionLinkNode> for Node
Source§fn from(val: InstructionLinkNode) -> Node
fn from(val: InstructionLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionNode> for Node
impl From<InstructionNode> for Node
Source§fn from(value: InstructionNode) -> Node
fn from(value: InstructionNode) -> Node
Converts to this type from the input type.
Source§impl From<InstructionRemainingAccountsNode> for Node
impl From<InstructionRemainingAccountsNode> for Node
Source§fn from(value: InstructionRemainingAccountsNode) -> Node
fn from(value: InstructionRemainingAccountsNode) -> Node
Converts to this type from the input type.
Source§impl From<MapEntryValueNode> for Node
impl From<MapEntryValueNode> for Node
Source§fn from(val: MapEntryValueNode) -> Node
fn from(val: MapEntryValueNode) -> Node
Converts to this type from the input type.
Source§impl From<MapTypeNode> for Node
impl From<MapTypeNode> for Node
Source§fn from(val: MapTypeNode) -> Node
fn from(val: MapTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<MapValueNode> for Node
impl From<MapValueNode> for Node
Source§fn from(val: MapValueNode) -> Node
fn from(val: MapValueNode) -> Node
Converts to this type from the input type.
Source§impl From<NoneValueNode> for Node
impl From<NoneValueNode> for Node
Source§fn from(val: NoneValueNode) -> Node
fn from(val: NoneValueNode) -> Node
Converts to this type from the input type.
Source§impl From<NumberTypeNode> for Node
impl From<NumberTypeNode> for Node
Source§fn from(val: NumberTypeNode) -> Node
fn from(val: NumberTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<NumberValueNode> for Node
impl From<NumberValueNode> for Node
Source§fn from(val: NumberValueNode) -> Node
fn from(val: NumberValueNode) -> Node
Converts to this type from the input type.
Source§impl From<OptionTypeNode> for Node
impl From<OptionTypeNode> for Node
Source§fn from(val: OptionTypeNode) -> Node
fn from(val: OptionTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<PayerValueNode> for Node
impl From<PayerValueNode> for Node
Source§fn from(val: PayerValueNode) -> Node
fn from(val: PayerValueNode) -> Node
Converts to this type from the input type.
Source§impl From<PdaLinkNode> for Node
impl From<PdaLinkNode> for Node
Source§fn from(val: PdaLinkNode) -> Node
fn from(val: PdaLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<PdaSeedNode> for Node
impl From<PdaSeedNode> for Node
Source§fn from(value: PdaSeedNode) -> Node
fn from(value: PdaSeedNode) -> Node
Converts to this type from the input type.
Source§impl From<PdaSeedValueNode> for Node
impl From<PdaSeedValueNode> for Node
Source§fn from(val: PdaSeedValueNode) -> Node
fn from(val: PdaSeedValueNode) -> Node
Converts to this type from the input type.
Source§impl From<PdaValueNode> for Node
impl From<PdaValueNode> for Node
Source§fn from(val: PdaValueNode) -> Node
fn from(val: PdaValueNode) -> Node
Converts to this type from the input type.
Source§impl From<PrefixedCountNode> for Node
impl From<PrefixedCountNode> for Node
Source§fn from(val: PrefixedCountNode) -> Node
fn from(val: PrefixedCountNode) -> Node
Converts to this type from the input type.
Source§impl From<ProgramIdValueNode> for Node
impl From<ProgramIdValueNode> for Node
Source§fn from(val: ProgramIdValueNode) -> Node
fn from(val: ProgramIdValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ProgramLinkNode> for Node
impl From<ProgramLinkNode> for Node
Source§fn from(val: ProgramLinkNode) -> Node
fn from(val: ProgramLinkNode) -> Node
Converts to this type from the input type.
Source§impl From<ProgramNode> for Node
impl From<ProgramNode> for Node
Source§fn from(value: ProgramNode) -> Node
fn from(value: ProgramNode) -> Node
Converts to this type from the input type.
Source§impl From<PublicKeyTypeNode> for Node
impl From<PublicKeyTypeNode> for Node
Source§fn from(val: PublicKeyTypeNode) -> Node
fn from(val: PublicKeyTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<PublicKeyValueNode> for Node
impl From<PublicKeyValueNode> for Node
Source§fn from(val: PublicKeyValueNode) -> Node
fn from(val: PublicKeyValueNode) -> Node
Converts to this type from the input type.
Source§impl From<RegisteredContextualValueNode> for Node
impl From<RegisteredContextualValueNode> for Node
Source§fn from(value: RegisteredContextualValueNode) -> Node
fn from(value: RegisteredContextualValueNode) -> Node
Converts to this type from the input type.
Source§impl From<RegisteredTypeNode> for Node
impl From<RegisteredTypeNode> for Node
Source§fn from(value: RegisteredTypeNode) -> Node
fn from(value: RegisteredTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<RegisteredValueNode> for Node
impl From<RegisteredValueNode> for Node
Source§fn from(value: RegisteredValueNode) -> Node
fn from(value: RegisteredValueNode) -> Node
Converts to this type from the input type.
Source§impl From<RemainderCountNode> for Node
impl From<RemainderCountNode> for Node
Source§fn from(val: RemainderCountNode) -> Node
fn from(val: RemainderCountNode) -> Node
Converts to this type from the input type.
Source§impl From<RemainderOptionTypeNode> for Node
impl From<RemainderOptionTypeNode> for Node
Source§fn from(val: RemainderOptionTypeNode) -> Node
fn from(val: RemainderOptionTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<ResolverValueNode> for Node
impl From<ResolverValueNode> for Node
Source§fn from(val: ResolverValueNode) -> Node
fn from(val: ResolverValueNode) -> Node
Converts to this type from the input type.
Source§impl From<SetTypeNode> for Node
impl From<SetTypeNode> for Node
Source§fn from(val: SetTypeNode) -> Node
fn from(val: SetTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<SetValueNode> for Node
impl From<SetValueNode> for Node
Source§fn from(val: SetValueNode) -> Node
fn from(val: SetValueNode) -> Node
Converts to this type from the input type.
Source§impl From<SizeDiscriminatorNode> for Node
impl From<SizeDiscriminatorNode> for Node
Source§fn from(val: SizeDiscriminatorNode) -> Node
fn from(val: SizeDiscriminatorNode) -> Node
Converts to this type from the input type.
Source§impl From<SolAmountTypeNode> for Node
impl From<SolAmountTypeNode> for Node
Source§fn from(val: SolAmountTypeNode) -> Node
fn from(val: SolAmountTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<SomeValueNode> for Node
impl From<SomeValueNode> for Node
Source§fn from(val: SomeValueNode) -> Node
fn from(val: SomeValueNode) -> Node
Converts to this type from the input type.
Source§impl From<StringTypeNode> for Node
impl From<StringTypeNode> for Node
Source§fn from(val: StringTypeNode) -> Node
fn from(val: StringTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<StringValueNode> for Node
impl From<StringValueNode> for Node
Source§fn from(val: StringValueNode) -> Node
fn from(val: StringValueNode) -> Node
Converts to this type from the input type.
Source§impl From<StructFieldTypeNode> for Node
impl From<StructFieldTypeNode> for Node
Source§fn from(val: StructFieldTypeNode) -> Node
fn from(val: StructFieldTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<StructFieldValueNode> for Node
impl From<StructFieldValueNode> for Node
Source§fn from(val: StructFieldValueNode) -> Node
fn from(val: StructFieldValueNode) -> Node
Converts to this type from the input type.
Source§impl From<StructTypeNode> for Node
impl From<StructTypeNode> for Node
Source§fn from(val: StructTypeNode) -> Node
fn from(val: StructTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<StructValueNode> for Node
impl From<StructValueNode> for Node
Source§fn from(val: StructValueNode) -> Node
fn from(val: StructValueNode) -> Node
Converts to this type from the input type.
Source§impl From<TupleTypeNode> for Node
impl From<TupleTypeNode> for Node
Source§fn from(val: TupleTypeNode) -> Node
fn from(val: TupleTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<TupleValueNode> for Node
impl From<TupleValueNode> for Node
Source§fn from(val: TupleValueNode) -> Node
fn from(val: TupleValueNode) -> Node
Converts to this type from the input type.
Source§impl From<VariablePdaSeedNode> for Node
impl From<VariablePdaSeedNode> for Node
Source§fn from(val: VariablePdaSeedNode) -> Node
fn from(val: VariablePdaSeedNode) -> Node
Converts to this type from the input type.
Source§impl From<ZeroableOptionTypeNode> for Node
impl From<ZeroableOptionTypeNode> for Node
Source§fn from(val: ZeroableOptionTypeNode) -> Node
fn from(val: ZeroableOptionTypeNode) -> Node
Converts to this type from the input type.
Source§impl Serialize for Node
impl Serialize for Node
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> TryFrom<NestedTypeNode<T>> for Nodewhere
T: TypeNodeTrait,
impl<T> TryFrom<NestedTypeNode<T>> for Nodewhere
T: TypeNodeTrait,
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(node: NestedTypeNode<T>) -> Result<Node, CodamaError>
fn try_from(node: NestedTypeNode<T>) -> Result<Node, CodamaError>
Performs the conversion.
Source§impl TryFrom<Node> for EnumVariantTypeNode
impl TryFrom<Node> for EnumVariantTypeNode
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(
value: Node,
) -> Result<EnumVariantTypeNode, <EnumVariantTypeNode as TryFrom<Node>>::Error>
fn try_from( value: Node, ) -> Result<EnumVariantTypeNode, <EnumVariantTypeNode as TryFrom<Node>>::Error>
Performs the conversion.
Source§impl<T> TryFrom<Node> for NestedTypeNode<T>where
T: TypeNodeTrait,
impl<T> TryFrom<Node> for NestedTypeNode<T>where
T: TypeNodeTrait,
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
Source§fn try_from(node: Node) -> Result<NestedTypeNode<T>, CodamaError>
fn try_from(node: Node) -> Result<NestedTypeNode<T>, CodamaError>
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