pub enum NodeOutput {
Data {
data: Value,
},
Errors {
errors: Vec<NodeError>,
},
}Expand description
A node’s output: success carries {data}, failure carries {errors}. The two
are mutually exclusive (enforced by the type); engine metadata lives in a
sibling meta, never inside data.
Variants§
Data
Success: arbitrary node-defined fields under data.
Errors
Failure: one or more errors under errors.
Implementations§
Source§impl NodeOutput
impl NodeOutput
Trait Implementations§
Source§impl Clone for NodeOutput
impl Clone for NodeOutput
Source§fn clone(&self) -> NodeOutput
fn clone(&self) -> NodeOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeOutput
impl Debug for NodeOutput
Source§impl<'de> Deserialize<'de> for NodeOutput
impl<'de> Deserialize<'de> for NodeOutput
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 PartialEq for NodeOutput
impl PartialEq for NodeOutput
Source§fn eq(&self, other: &NodeOutput) -> bool
fn eq(&self, other: &NodeOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeOutput
impl Serialize for NodeOutput
impl StructuralPartialEq for NodeOutput
Auto Trait Implementations§
impl Freeze for NodeOutput
impl RefUnwindSafe for NodeOutput
impl Send for NodeOutput
impl Sync for NodeOutput
impl Unpin for NodeOutput
impl UnsafeUnpin for NodeOutput
impl UnwindSafe for NodeOutput
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