pub struct WorkflowResult {
pub name: String,
pub step_results: HashMap<String, StepResult>,
pub variables: HashMap<String, String>,
pub success: bool,
pub total_time_ms: u64,
pub completed_levels: usize,
}Expand description
The result of the entire workflow execution.
Fields§
§name: StringThe workflow name.
step_results: HashMap<String, StepResult>The results of each step.
variables: HashMap<String, String>The final context variables after all steps.
success: boolWhether the workflow completed successfully.
total_time_ms: u64Total execution time in milliseconds.
completed_levels: usizeWhich level was being executed when the workflow ended.
Implementations§
Source§impl WorkflowResult
impl WorkflowResult
Sourcepub fn get_step_result(&self, step_id: &str) -> Option<&StepResult>
pub fn get_step_result(&self, step_id: &str) -> Option<&StepResult>
Get a step result by ID.
Sourcepub fn completed_steps(&self) -> Vec<String>
pub fn completed_steps(&self) -> Vec<String>
Get all completed step IDs.
Sourcepub fn failed_steps(&self) -> Vec<String>
pub fn failed_steps(&self) -> Vec<String>
Get all failed step IDs.
Trait Implementations§
Source§impl Clone for WorkflowResult
impl Clone for WorkflowResult
Source§impl Debug for WorkflowResult
impl Debug for WorkflowResult
Source§impl<'de> Deserialize<'de> for WorkflowResult
impl<'de> Deserialize<'de> for WorkflowResult
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
Auto 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