pub struct ConditionalValueNode {
pub condition: ConditionNode,
pub value: Option<ValueNode>,
pub if_true: Box<Option<InstructionInputValueNode>>,
pub if_false: Box<Option<InstructionInputValueNode>>,
}
Fields§
§condition: ConditionNode
§value: Option<ValueNode>
§if_true: Box<Option<InstructionInputValueNode>>
§if_false: Box<Option<InstructionInputValueNode>>
Trait Implementations§
Source§impl Clone for ConditionalValueNode
impl Clone for ConditionalValueNode
Source§fn clone(&self) -> ConditionalValueNode
fn clone(&self) -> ConditionalValueNode
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 ConditionalValueNode
impl Debug for ConditionalValueNode
Source§impl<'de> Deserialize<'de> for ConditionalValueNode
impl<'de> Deserialize<'de> for ConditionalValueNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConditionalValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConditionalValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConditionalValueNode> for ContextualValueNode
impl From<ConditionalValueNode> for ContextualValueNode
Source§fn from(value: ConditionalValueNode) -> ContextualValueNode
fn from(value: ConditionalValueNode) -> ContextualValueNode
Converts to this type from the input type.
Source§impl From<ConditionalValueNode> for InstructionInputValueNode
impl From<ConditionalValueNode> for InstructionInputValueNode
Source§fn from(value: ConditionalValueNode) -> InstructionInputValueNode
fn from(value: ConditionalValueNode) -> InstructionInputValueNode
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<ConditionalValueNode> for RegisteredContextualValueNode
impl From<ConditionalValueNode> for RegisteredContextualValueNode
Source§fn from(value: ConditionalValueNode) -> RegisteredContextualValueNode
fn from(value: ConditionalValueNode) -> RegisteredContextualValueNode
Converts to this type from the input type.
Source§impl NodeTrait for ConditionalValueNode
impl NodeTrait for ConditionalValueNode
Source§impl PartialEq for ConditionalValueNode
impl PartialEq for ConditionalValueNode
Source§impl Serialize for ConditionalValueNode
impl Serialize for ConditionalValueNode
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 ConditionalValueNode
Auto Trait Implementations§
impl Freeze for ConditionalValueNode
impl RefUnwindSafe for ConditionalValueNode
impl Send for ConditionalValueNode
impl Sync for ConditionalValueNode
impl Unpin for ConditionalValueNode
impl UnwindSafe for ConditionalValueNode
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