pub struct WorkflowContext { /* private fields */ }Expand description
Shared state accessible to all workflow nodes during execution.
Nodes read and write values to this shared map to pass data between pipeline stages.
Implementations§
Source§impl WorkflowContext
impl WorkflowContext
Sourcepub async fn node_result(&self, node_name: &str) -> Option<Value>
pub async fn node_result(&self, node_name: &str) -> Option<Value>
Get the result of a previously completed node.
Sourcepub async fn all_results(&self) -> HashMap<String, Value>
pub async fn all_results(&self) -> HashMap<String, Value>
Get all results as a map.
Trait Implementations§
Source§impl Clone for WorkflowContext
impl Clone for WorkflowContext
Source§fn clone(&self) -> WorkflowContext
fn clone(&self) -> WorkflowContext
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 moreAuto Trait Implementations§
impl Freeze for WorkflowContext
impl !RefUnwindSafe for WorkflowContext
impl Send for WorkflowContext
impl Sync for WorkflowContext
impl Unpin for WorkflowContext
impl UnsafeUnpin for WorkflowContext
impl !UnwindSafe for WorkflowContext
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