pub struct EnumValueNode {
pub variant: CamelCaseString,
pub enum: DefinedTypeLinkNode,
pub value: Option<EnumVariantData>,
}
Fields§
§variant: CamelCaseString
§enum: DefinedTypeLinkNode
§value: Option<EnumVariantData>
Implementations§
Source§impl EnumValueNode
impl EnumValueNode
pub fn new<T, U>( enum: T, variant: U, value: Option<EnumVariantData>, ) -> EnumValueNode
pub fn empty<T, U>(enum: T, variant: U) -> EnumValueNode
pub fn fields<T, U, V>(enum: T, variant: U, value: V) -> EnumValueNode
pub fn tuple<T, U, V>(enum: T, variant: U, value: V) -> EnumValueNode
Trait Implementations§
Source§impl Clone for EnumValueNode
impl Clone for EnumValueNode
Source§fn clone(&self) -> EnumValueNode
fn clone(&self) -> EnumValueNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnumValueNode
impl Debug for EnumValueNode
Source§impl<'de> Deserialize<'de> for EnumValueNode
impl<'de> Deserialize<'de> for EnumValueNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnumValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EnumValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EnumValueNode> for InstructionInputValueNode
impl From<EnumValueNode> for InstructionInputValueNode
Source§fn from(value: EnumValueNode) -> InstructionInputValueNode
fn from(value: EnumValueNode) -> InstructionInputValueNode
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<EnumValueNode> for PdaSeedValueValueNode
impl From<EnumValueNode> for PdaSeedValueValueNode
Source§fn from(value: EnumValueNode) -> PdaSeedValueValueNode
fn from(value: EnumValueNode) -> PdaSeedValueValueNode
Converts to this type from the input type.
Source§impl From<EnumValueNode> for RegisteredValueNode
impl From<EnumValueNode> for RegisteredValueNode
Source§fn from(value: EnumValueNode) -> RegisteredValueNode
fn from(value: EnumValueNode) -> RegisteredValueNode
Converts to this type from the input type.
Source§impl From<EnumValueNode> for ValueNode
impl From<EnumValueNode> for ValueNode
Source§fn from(value: EnumValueNode) -> ValueNode
fn from(value: EnumValueNode) -> ValueNode
Converts to this type from the input type.
Source§impl NodeTrait for EnumValueNode
impl NodeTrait for EnumValueNode
Source§impl PartialEq for EnumValueNode
impl PartialEq for EnumValueNode
Source§impl Serialize for EnumValueNode
impl Serialize for EnumValueNode
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
impl StructuralPartialEq for EnumValueNode
Auto Trait Implementations§
impl Freeze for EnumValueNode
impl RefUnwindSafe for EnumValueNode
impl Send for EnumValueNode
impl Sync for EnumValueNode
impl Unpin for EnumValueNode
impl UnwindSafe for EnumValueNode
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