pub enum ValueNode {
Show 15 variants
Array(ArrayValueNode),
Boolean(BooleanValueNode),
Bytes(BytesValueNode),
Constant(ConstantValueNode),
Enum(EnumValueNode),
Injected(InjectedValueNode),
Map(MapValueNode),
None(NoneValueNode),
Number(NumberValueNode),
PublicKey(PublicKeyValueNode),
Set(SetValueNode),
Some(SomeValueNode),
String(StringValueNode),
Struct(StructValueNode),
Tuple(TupleValueNode),
}Variants§
Array(ArrayValueNode)
Boolean(BooleanValueNode)
Bytes(BytesValueNode)
Constant(ConstantValueNode)
Enum(EnumValueNode)
Injected(InjectedValueNode)
Map(MapValueNode)
None(NoneValueNode)
Number(NumberValueNode)
PublicKey(PublicKeyValueNode)
Set(SetValueNode)
Some(SomeValueNode)
String(StringValueNode)
Struct(StructValueNode)
Tuple(TupleValueNode)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ValueNode
impl<'de> Deserialize<'de> for ValueNode
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>,
Source§impl From<ArrayValueNode> for ValueNode
impl From<ArrayValueNode> for ValueNode
Source§fn from(value: ArrayValueNode) -> Self
fn from(value: ArrayValueNode) -> Self
Source§impl From<BooleanValueNode> for ValueNode
impl From<BooleanValueNode> for ValueNode
Source§fn from(value: BooleanValueNode) -> Self
fn from(value: BooleanValueNode) -> Self
Source§impl From<BytesValueNode> for ValueNode
impl From<BytesValueNode> for ValueNode
Source§fn from(value: BytesValueNode) -> Self
fn from(value: BytesValueNode) -> Self
Source§impl From<ConstantValueNode> for ValueNode
impl From<ConstantValueNode> for ValueNode
Source§fn from(value: ConstantValueNode) -> Self
fn from(value: ConstantValueNode) -> Self
Source§impl From<EnumValueNode> for ValueNode
impl From<EnumValueNode> for ValueNode
Source§fn from(value: EnumValueNode) -> Self
fn from(value: EnumValueNode) -> Self
Source§impl From<InjectedValueNode> for ValueNode
impl From<InjectedValueNode> for ValueNode
Source§fn from(value: InjectedValueNode) -> Self
fn from(value: InjectedValueNode) -> Self
Source§impl From<MapValueNode> for ValueNode
impl From<MapValueNode> for ValueNode
Source§fn from(value: MapValueNode) -> Self
fn from(value: MapValueNode) -> Self
Source§impl From<NoneValueNode> for ValueNode
impl From<NoneValueNode> for ValueNode
Source§fn from(value: NoneValueNode) -> Self
fn from(value: NoneValueNode) -> Self
Source§impl From<NumberValueNode> for ValueNode
impl From<NumberValueNode> for ValueNode
Source§fn from(value: NumberValueNode) -> Self
fn from(value: NumberValueNode) -> Self
Source§impl From<PublicKeyValueNode> for ValueNode
impl From<PublicKeyValueNode> for ValueNode
Source§fn from(value: PublicKeyValueNode) -> Self
fn from(value: PublicKeyValueNode) -> Self
Source§impl From<SetValueNode> for ValueNode
impl From<SetValueNode> for ValueNode
Source§fn from(value: SetValueNode) -> Self
fn from(value: SetValueNode) -> Self
Source§impl From<SomeValueNode> for ValueNode
impl From<SomeValueNode> for ValueNode
Source§fn from(value: SomeValueNode) -> Self
fn from(value: SomeValueNode) -> Self
Source§impl From<StringValueNode> for ValueNode
impl From<StringValueNode> for ValueNode
Source§fn from(value: StringValueNode) -> Self
fn from(value: StringValueNode) -> Self
Source§impl From<StructValueNode> for ValueNode
impl From<StructValueNode> for ValueNode
Source§fn from(value: StructValueNode) -> Self
fn from(value: StructValueNode) -> Self
Source§impl From<TupleValueNode> for ValueNode
impl From<TupleValueNode> for ValueNode
Source§fn from(value: TupleValueNode) -> Self
fn from(value: TupleValueNode) -> Self
Source§impl From<ValueNode> for PdaSeedValueValue
Bridge from the broader ValueNode union into PdaSeedValueValue.
PdaSeedValueValue is accountValueNode | argumentValueNode | valueNode
(17 variants total) — every value-node leaf maps to its same-named
PdaSeedValueValue variant.
impl From<ValueNode> for PdaSeedValueValue
Bridge from the broader ValueNode union into PdaSeedValueValue.
PdaSeedValueValue is accountValueNode | argumentValueNode | valueNode
(17 variants total) — every value-node leaf maps to its same-named
PdaSeedValueValue variant.
Source§impl From<ValueNode> for RegisteredValueNode
impl From<ValueNode> for RegisteredValueNode
Source§impl From<ValueNode> for ConstantPdaSeedValue
Bridge from the broader value-node union into a constantPdaSeedNode
value. The spec union constantPdaSeedValue is programIdValueNode | valueNode, so every ValueNode cleanly maps to its same-named
ConstantPdaSeedValue variant.
impl From<ValueNode> for ConstantPdaSeedValue
Bridge from the broader value-node union into a constantPdaSeedNode
value. The spec union constantPdaSeedValue is programIdValueNode | valueNode, so every ValueNode cleanly maps to its same-named
ConstantPdaSeedValue variant.
Source§impl From<ValueNode> for InstructionInputValueNode
Bridge from the value-node union into the broader
InstructionInputValueNode. The generated InstructionInputValueNode
enum (in generated/contextual_value_nodes/) auto-derives
From<Variant> for each leaf, but ValueNode itself (a union of
15 value leaves) needs this explicit bridge.
impl From<ValueNode> for InstructionInputValueNode
Bridge from the value-node union into the broader
InstructionInputValueNode. The generated InstructionInputValueNode
enum (in generated/contextual_value_nodes/) auto-derives
From<Variant> for each leaf, but ValueNode itself (a union of
15 value leaves) needs this explicit bridge.
impl NodeUnionTrait for ValueNode
impl StructuralPartialEq for ValueNode
Source§impl TryFrom<InstructionInputValueNode> for ValueNode
Inverse bridge: extract the ValueNode subset out of
InstructionInputValueNode, returning CodamaError::InvalidNodeConversion
for the non-value variants (contextual / link members).
impl TryFrom<InstructionInputValueNode> for ValueNode
Inverse bridge: extract the ValueNode subset out of
InstructionInputValueNode, returning CodamaError::InvalidNodeConversion
for the non-value variants (contextual / link members).