pub enum EventDetails {
WorkflowStarted {
metadata: WorkflowMetadata,
input: HashMap<String, Value>,
},
WorkflowCompleted {
duration_ms: u64,
result: ExecutionResult,
},
WorkflowFailed {
error: String,
duration_ms: u64,
stack_trace: Option<String>,
},
WorkflowCancelled {
reason: String,
duration_ms: u64,
},
NodeStarted {
node_kind: NodeKind,
input: HashMap<String, Value>,
},
NodeCompleted {
node_kind: NodeKind,
duration_ms: u64,
metrics: NodeMetrics,
output: HashMap<String, Value>,
},
NodeFailed {
node_kind: NodeKind,
error: String,
stack_trace: Option<String>,
retry_attempt: u32,
},
NodeSkipped {
node_kind: NodeKind,
reason: String,
},
VariableChanged {
variable_name: String,
old_value: Option<Value>,
new_value: Value,
source: String,
},
ErrorOccurred {
error: String,
stack_trace: Option<String>,
context: HashMap<String, Value>,
},
CheckpointCreated {
checkpoint_id: String,
nodes_completed: usize,
state: String,
},
ExecutionResumed {
checkpoint_id: String,
nodes_to_skip: usize,
},
}Expand description
Detailed event information
Variants§
WorkflowStarted
Workflow started event
WorkflowCompleted
Workflow completed successfully
Fields
§
result: ExecutionResultFinal execution result
WorkflowFailed
Workflow failed
Fields
WorkflowCancelled
Workflow cancelled by user
NodeStarted
Node started execution
NodeCompleted
Node completed successfully
Fields
§
metrics: NodeMetricsPerformance metrics
NodeFailed
Node failed
Fields
NodeSkipped
Node skipped (e.g., due to conditional logic)
VariableChanged
Variable changed
Fields
ErrorOccurred
Error occurred
Fields
CheckpointCreated
Checkpoint created
Fields
ExecutionResumed
Execution resumed
Trait Implementations§
Source§impl Clone for EventDetails
impl Clone for EventDetails
Source§fn clone(&self) -> EventDetails
fn clone(&self) -> EventDetails
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 EventDetails
impl Debug for EventDetails
Source§impl<'de> Deserialize<'de> for EventDetails
impl<'de> Deserialize<'de> for EventDetails
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 EventDetails
impl RefUnwindSafe for EventDetails
impl Send for EventDetails
impl Sync for EventDetails
impl Unpin for EventDetails
impl UnwindSafe for EventDetails
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