pub struct RuntimeContext {
pub steps_context: HashMap<String, Value>,
pub input: Value,
pub connections: HashMap<String, Value>,
}Expand description
Runtime context providing workflow execution state
Fields§
§steps_context: HashMap<String, Value>Step execution results
input: ValueWorkflow input
connections: HashMap<String, Value>Connection data
Implementations§
Source§impl RuntimeContext
impl RuntimeContext
Sourcepub fn with_input(input: Value) -> Self
pub fn with_input(input: Value) -> Self
Create runtime context with input
Sourcepub fn get_step_result(&self, step_id: &str) -> Option<&Value>
pub fn get_step_result(&self, step_id: &str) -> Option<&Value>
Get a step result by step ID
Sourcepub fn set_step_result(&mut self, step_id: String, value: Value)
pub fn set_step_result(&mut self, step_id: String, value: Value)
Set a step result
Trait Implementations§
Source§impl Debug for RuntimeContext
impl Debug for RuntimeContext
Source§impl Default for RuntimeContext
impl Default for RuntimeContext
Source§fn default() -> RuntimeContext
fn default() -> RuntimeContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeContext
impl RefUnwindSafe for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl UnwindSafe for RuntimeContext
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