pub struct RunResult {
pub outputs: Map<String, Value>,
pub branch: Option<String>,
pub writes: Vec<Value>,
pub usage: Option<Value>,
pub metadata: Map<String, Value>,
}Expand description
Successful node result.
Fields§
§outputs: Map<String, Value>§branch: Option<String>§writes: Vec<Value>§usage: Option<Value>§metadata: Map<String, Value>Implementations§
Source§impl RunResult
impl RunResult
pub fn new() -> Self
Sourcepub fn output(self, name: impl Into<String>, value: impl Serialize) -> Self
pub fn output(self, name: impl Into<String>, value: impl Serialize) -> Self
Add an output. Values that fail to serialize become null.
Sourcepub fn branch(self, handle: impl Into<String>) -> Self
pub fn branch(self, handle: impl Into<String>) -> Self
Select an outgoing branch handle (for nodes declaring handles).
Trait Implementations§
impl StructuralPartialEq for RunResult
Auto Trait Implementations§
impl Forget for RunResult
impl Freeze for RunResult
impl Move for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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