pub enum ValueNode {
Show 14 variants
Array(ArrayValueNode),
Boolean(BooleanValueNode),
Bytes(BytesValueNode),
Constant(ConstantValueNode),
Enum(EnumValueNode),
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)
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ArrayValueNode> for ValueNode
impl From<ArrayValueNode> for ValueNode
Source§fn from(value: ArrayValueNode) -> Self
fn from(value: ArrayValueNode) -> Self
Converts to this type from the input type.
Source§impl From<BooleanValueNode> for ValueNode
impl From<BooleanValueNode> for ValueNode
Source§fn from(value: BooleanValueNode) -> Self
fn from(value: BooleanValueNode) -> Self
Converts to this type from the input type.
Source§impl From<BytesValueNode> for ValueNode
impl From<BytesValueNode> for ValueNode
Source§fn from(value: BytesValueNode) -> Self
fn from(value: BytesValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for ValueNode
impl From<ConstantValueNode> for ValueNode
Source§fn from(value: ConstantValueNode) -> Self
fn from(value: ConstantValueNode) -> Self
Converts to this type from the input type.
Source§impl From<EnumValueNode> for ValueNode
impl From<EnumValueNode> for ValueNode
Source§fn from(value: EnumValueNode) -> Self
fn from(value: EnumValueNode) -> Self
Converts to this type from the input type.
Source§impl From<MapValueNode> for ValueNode
impl From<MapValueNode> for ValueNode
Source§fn from(value: MapValueNode) -> Self
fn from(value: MapValueNode) -> Self
Converts to this type from the input type.
Source§impl From<NoneValueNode> for ValueNode
impl From<NoneValueNode> for ValueNode
Source§fn from(value: NoneValueNode) -> Self
fn from(value: NoneValueNode) -> Self
Converts to this type from the input type.
Source§impl From<NumberValueNode> for ValueNode
impl From<NumberValueNode> for ValueNode
Source§fn from(value: NumberValueNode) -> Self
fn from(value: NumberValueNode) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeyValueNode> for ValueNode
impl From<PublicKeyValueNode> for ValueNode
Source§fn from(value: PublicKeyValueNode) -> Self
fn from(value: PublicKeyValueNode) -> Self
Converts to this type from the input type.
Source§impl From<SetValueNode> for ValueNode
impl From<SetValueNode> for ValueNode
Source§fn from(value: SetValueNode) -> Self
fn from(value: SetValueNode) -> Self
Converts to this type from the input type.
Source§impl From<SomeValueNode> for ValueNode
impl From<SomeValueNode> for ValueNode
Source§fn from(value: SomeValueNode) -> Self
fn from(value: SomeValueNode) -> Self
Converts to this type from the input type.
Source§impl From<StringValueNode> for ValueNode
impl From<StringValueNode> for ValueNode
Source§fn from(value: StringValueNode) -> Self
fn from(value: StringValueNode) -> Self
Converts to this type from the input type.
Source§impl From<StructValueNode> for ValueNode
impl From<StructValueNode> for ValueNode
Source§fn from(value: StructValueNode) -> Self
fn from(value: StructValueNode) -> Self
Converts to this type from the input type.
Source§impl From<TupleValueNode> for ValueNode
impl From<TupleValueNode> for ValueNode
Source§fn from(value: TupleValueNode) -> Self
fn from(value: TupleValueNode) -> Self
Converts to this type from the input type.
Source§impl From<ValueNode> for InstructionInputValueNode
impl From<ValueNode> for InstructionInputValueNode
Source§impl From<ValueNode> for RegisteredValueNode
impl From<ValueNode> for RegisteredValueNode
Source§impl TryFrom<RegisteredValueNode> for ValueNode
impl TryFrom<RegisteredValueNode> for ValueNode
Source§type Error = CodamaError
type Error = CodamaError
The type returned in the event of a conversion error.
impl NodeUnionTrait for ValueNode
impl StructuralPartialEq for ValueNode
Auto Trait Implementations§
impl Freeze for ValueNode
impl RefUnwindSafe for ValueNode
impl Send for ValueNode
impl Sync for ValueNode
impl Unpin for ValueNode
impl UnwindSafe for ValueNode
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