[go: up one dir, main page]

Node

Enum Node 

Source
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)

§

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 Clone for Node

Source§

fn clone(&self) -> Node

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Node

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Node

Source§

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

Source§

fn from(val: AccountBumpValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<AccountLinkNode> for Node

Source§

fn from(val: AccountLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<AccountNode> for Node

Source§

fn from(value: AccountNode) -> Node

Converts to this type from the input type.
Source§

impl From<AccountValueNode> for Node

Source§

fn from(val: AccountValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<AmountTypeNode> for Node

Source§

fn from(val: AmountTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<ArgumentValueNode> for Node

Source§

fn from(val: ArgumentValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ArrayTypeNode> for Node

Source§

fn from(val: ArrayTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<ArrayValueNode> for Node

Source§

fn from(val: ArrayValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<BooleanTypeNode> for Node

Source§

fn from(val: BooleanTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<BooleanValueNode> for Node

Source§

fn from(val: BooleanValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<BytesTypeNode> for Node

Source§

fn from(val: BytesTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<BytesValueNode> for Node

Source§

fn from(val: BytesValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ConditionalValueNode> for Node

Source§

fn from(val: ConditionalValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ConstantDiscriminatorNode> for Node

Source§

fn from(val: ConstantDiscriminatorNode) -> Node

Converts to this type from the input type.
Source§

impl From<ConstantPdaSeedNode> for Node

Source§

fn from(val: ConstantPdaSeedNode) -> Node

Converts to this type from the input type.
Source§

impl From<ConstantValueNode> for Node

Source§

fn from(val: ConstantValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ContextualValueNode> for Node

Source§

fn from(node: ContextualValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<CountNode> for Node

Source§

fn from(value: CountNode) -> Node

Converts to this type from the input type.
Source§

impl From<DateTimeTypeNode> for Node

Source§

fn from(val: DateTimeTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<DefinedTypeLinkNode> for Node

Source§

fn from(val: DefinedTypeLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<DefinedTypeNode> for Node

Source§

fn from(value: DefinedTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<DiscriminatorNode> for Node

Source§

fn from(value: DiscriminatorNode) -> Node

Converts to this type from the input type.
Source§

impl From<EnumEmptyVariantTypeNode> for Node

Source§

fn from(val: EnumEmptyVariantTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<EnumStructVariantTypeNode> for Node

Source§

fn from(val: EnumStructVariantTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<EnumTupleVariantTypeNode> for Node

Source§

fn from(val: EnumTupleVariantTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<EnumTypeNode> for Node

Source§

fn from(val: EnumTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<EnumValueNode> for Node

Source§

fn from(val: EnumValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ErrorNode> for Node

Source§

fn from(value: ErrorNode) -> Node

Converts to this type from the input type.
Source§

impl From<FieldDiscriminatorNode> for Node

Source§

fn from(val: FieldDiscriminatorNode) -> Node

Converts to this type from the input type.
Source§

impl From<FixedCountNode> for Node

Source§

fn from(val: FixedCountNode) -> Node

Converts to this type from the input type.
Source§

impl From<FixedSizeTypeNode<TypeNode>> for Node

Source§

fn from(node: FixedSizeTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<HiddenPrefixTypeNode<TypeNode>> for Node

Source§

fn from(val: HiddenPrefixTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<HiddenSuffixTypeNode<TypeNode>> for Node

Source§

fn from(val: HiddenSuffixTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<IdentityValueNode> for Node

Source§

fn from(val: IdentityValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionAccountLinkNode> for Node

Source§

fn from(val: InstructionAccountLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionAccountNode> for Node

Source§

fn from(value: InstructionAccountNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionArgumentLinkNode> for Node

Source§

fn from(val: InstructionArgumentLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionArgumentNode> for Node

Source§

fn from(value: InstructionArgumentNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionByteDeltaNode> for Node

Source§

fn from(value: InstructionByteDeltaNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionLinkNode> for Node

Source§

fn from(val: InstructionLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionNode> for Node

Source§

fn from(value: InstructionNode) -> Node

Converts to this type from the input type.
Source§

impl From<InstructionRemainingAccountsNode> for Node

Source§

fn from(value: InstructionRemainingAccountsNode) -> Node

Converts to this type from the input type.
Source§

impl From<LinkNode> for Node

Source§

fn from(value: LinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<MapEntryValueNode> for Node

Source§

fn from(val: MapEntryValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<MapTypeNode> for Node

Source§

fn from(val: MapTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<MapValueNode> for Node

Source§

fn from(val: MapValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<NoneValueNode> for Node

Source§

fn from(val: NoneValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<NumberTypeNode> for Node

Source§

fn from(val: NumberTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<NumberValueNode> for Node

Source§

fn from(val: NumberValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<OptionTypeNode> for Node

Source§

fn from(val: OptionTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<PayerValueNode> for Node

Source§

fn from(val: PayerValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<PdaLinkNode> for Node

Source§

fn from(val: PdaLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<PdaNode> for Node

Source§

fn from(value: PdaNode) -> Node

Converts to this type from the input type.
Source§

impl From<PdaSeedNode> for Node

Source§

fn from(value: PdaSeedNode) -> Node

Converts to this type from the input type.
Source§

impl From<PdaSeedValueNode> for Node

Source§

fn from(val: PdaSeedValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<PdaValueNode> for Node

Source§

fn from(val: PdaValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<PostOffsetTypeNode<TypeNode>> for Node

Source§

fn from(val: PostOffsetTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<PreOffsetTypeNode<TypeNode>> for Node

Source§

fn from(val: PreOffsetTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<PrefixedCountNode> for Node

Source§

fn from(val: PrefixedCountNode) -> Node

Converts to this type from the input type.
Source§

impl From<ProgramIdValueNode> for Node

Source§

fn from(val: ProgramIdValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<ProgramLinkNode> for Node

Source§

fn from(val: ProgramLinkNode) -> Node

Converts to this type from the input type.
Source§

impl From<ProgramNode> for Node

Source§

fn from(value: ProgramNode) -> Node

Converts to this type from the input type.
Source§

impl From<PublicKeyTypeNode> for Node

Source§

fn from(val: PublicKeyTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<PublicKeyValueNode> for Node

Source§

fn from(val: PublicKeyValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<RegisteredContextualValueNode> for Node

Source§

fn from(value: RegisteredContextualValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<RegisteredTypeNode> for Node

Source§

fn from(value: RegisteredTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<RegisteredValueNode> for Node

Source§

fn from(value: RegisteredValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<RemainderCountNode> for Node

Source§

fn from(val: RemainderCountNode) -> Node

Converts to this type from the input type.
Source§

impl From<RemainderOptionTypeNode> for Node

Source§

fn from(val: RemainderOptionTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<ResolverValueNode> for Node

Source§

fn from(val: ResolverValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<RootNode> for Node

Source§

fn from(value: RootNode) -> Node

Converts to this type from the input type.
Source§

impl From<SentinelTypeNode<TypeNode>> for Node

Source§

fn from(val: SentinelTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<SetTypeNode> for Node

Source§

fn from(val: SetTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<SetValueNode> for Node

Source§

fn from(val: SetValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<SizeDiscriminatorNode> for Node

Source§

fn from(val: SizeDiscriminatorNode) -> Node

Converts to this type from the input type.
Source§

impl From<SizePrefixTypeNode<TypeNode>> for Node

Source§

fn from(val: SizePrefixTypeNode<TypeNode>) -> Node

Converts to this type from the input type.
Source§

impl From<SolAmountTypeNode> for Node

Source§

fn from(val: SolAmountTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<SomeValueNode> for Node

Source§

fn from(val: SomeValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<StringTypeNode> for Node

Source§

fn from(val: StringTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<StringValueNode> for Node

Source§

fn from(val: StringValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<StructFieldTypeNode> for Node

Source§

fn from(val: StructFieldTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<StructFieldValueNode> for Node

Source§

fn from(val: StructFieldValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<StructTypeNode> for Node

Source§

fn from(val: StructTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<StructValueNode> for Node

Source§

fn from(val: StructValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<TupleTypeNode> for Node

Source§

fn from(val: TupleTypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<TupleValueNode> for Node

Source§

fn from(val: TupleValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<TypeNode> for Node

Source§

fn from(node: TypeNode) -> Node

Converts to this type from the input type.
Source§

impl From<ValueNode> for Node

Source§

fn from(node: ValueNode) -> Node

Converts to this type from the input type.
Source§

impl From<VariablePdaSeedNode> for Node

Source§

fn from(val: VariablePdaSeedNode) -> Node

Converts to this type from the input type.
Source§

impl From<ZeroableOptionTypeNode> for Node

Source§

fn from(val: ZeroableOptionTypeNode) -> Node

Converts to this type from the input type.
Source§

impl HasKind for Node

Source§

fn kind(&self) -> &'static str

Source§

impl PartialEq for Node

Source§

fn eq(&self, other: &Node) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Node

Source§

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 Node
where T: TypeNodeTrait,

Source§

type Error = CodamaError

The type returned in the event of a conversion error.
Source§

fn try_from(node: NestedTypeNode<T>) -> Result<Node, CodamaError>

Performs the conversion.
Source§

impl TryFrom<Node> for EnumVariantTypeNode

Source§

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>

Performs the conversion.
Source§

impl<T> TryFrom<Node> for NestedTypeNode<T>
where T: TypeNodeTrait,

Source§

type Error = CodamaError

The type returned in the event of a conversion error.
Source§

fn try_from(node: Node) -> Result<NestedTypeNode<T>, CodamaError>

Performs the conversion.
Source§

impl TryFrom<Node> for TypeNode

Source§

type Error = CodamaError

The type returned in the event of a conversion error.
Source§

fn try_from(node: Node) -> Result<TypeNode, <TypeNode as TryFrom<Node>>::Error>

Performs the conversion.
Source§

impl NodeUnionTrait for Node

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<'a, T, U> TryFromFilter<'a, U> for T
where T: 'a, &'a T: TryFrom<U>,

Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,