pub struct WorkflowResult {
pub run: Run,
pub steps: Vec<StepResult>,
}Expand description
Result of a workflow execution, carrying the final Run and per-step
metrics collected during execution.
Returned by Engine::run_handler, Engine::execute_handler_run,
Engine::execute_run, and Engine::resume_run.
§Examples
use ironflow_engine::engine::WorkflowResult;
println!("run {} finished with {} steps", result.run.id, result.steps.len());
for step in &result.steps {
println!(" {} ({:?}): {}ms", step.name, step.status, step.duration_ms);
}Fields§
§run: RunThe finalized run record.
steps: Vec<StepResult>Per-step results in execution order.
Trait Implementations§
Source§impl Clone for WorkflowResult
impl Clone for WorkflowResult
Source§fn clone(&self) -> WorkflowResult
fn clone(&self) -> WorkflowResult
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 moreAuto Trait Implementations§
impl Freeze for WorkflowResult
impl RefUnwindSafe for WorkflowResult
impl Send for WorkflowResult
impl Sync for WorkflowResult
impl Unpin for WorkflowResult
impl UnsafeUnpin for WorkflowResult
impl UnwindSafe for WorkflowResult
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