pub struct ExecutionStep {
pub workflow_id: String,
pub task_id: Option<String>,
pub result: StepResult,
pub message: Option<Message>,
}Expand description
A single step in the execution trace
Fields§
§workflow_id: StringID of the workflow this step belongs to
task_id: Option<String>ID of the task (None for workflow-level skips)
result: StepResultResult of the step execution
message: Option<Message>Message snapshot after this step (only for Executed steps)
Implementations§
Source§impl ExecutionStep
impl ExecutionStep
Sourcepub fn executed(workflow_id: &str, task_id: &str, message: &Message) -> Self
pub fn executed(workflow_id: &str, task_id: &str, message: &Message) -> Self
Create a new executed step with a message snapshot
Sourcepub fn task_skipped(workflow_id: &str, task_id: &str) -> Self
pub fn task_skipped(workflow_id: &str, task_id: &str) -> Self
Create a skipped task step
Sourcepub fn workflow_skipped(workflow_id: &str) -> Self
pub fn workflow_skipped(workflow_id: &str) -> Self
Create a skipped workflow step
Trait Implementations§
Source§impl Clone for ExecutionStep
impl Clone for ExecutionStep
Source§fn clone(&self) -> ExecutionStep
fn clone(&self) -> ExecutionStep
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 moreSource§impl Debug for ExecutionStep
impl Debug for ExecutionStep
Source§impl<'de> Deserialize<'de> for ExecutionStep
impl<'de> Deserialize<'de> for ExecutionStep
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 ExecutionStep
impl RefUnwindSafe for ExecutionStep
impl Send for ExecutionStep
impl Sync for ExecutionStep
impl Unpin for ExecutionStep
impl UnwindSafe for ExecutionStep
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