pub enum ExecutionEvent {
Show 13 variants
StepStarted {
runId: RunId,
stepPath: StepPath,
},
StepCompleted {
runId: RunId,
stepPath: StepPath,
},
StepFailed {
runId: RunId,
stepPath: StepPath,
error: String,
},
CheckEvaluated {
runId: RunId,
checkName: String,
result: bool,
reason: Option<String>,
},
MatchEvaluated {
runId: RunId,
checkName: String,
variant: String,
reason: Option<String>,
armIndex: Option<i64>,
},
BranchStarted {
runId: RunId,
branchPath: StepPath,
},
BranchCompleted {
runId: RunId,
branchPath: StepPath,
output: Option<Value>,
},
BranchFailed {
runId: RunId,
branchPath: StepPath,
error: String,
},
JoinStarted {
runId: RunId,
joinWorkflow: String,
},
RunPaused {
runId: RunId,
position: StepPath,
},
RunCompleted {
runId: RunId,
},
RunFailed {
runId: RunId,
position: StepPath,
error: String,
},
SafeBoundary {
runId: RunId,
boundaryType: String,
stepPath: StepPath,
},
}Expand description
Discriminated union of all execution events (ADR-26).
Uses internally-tagged serialization via serde, matching the TS
discriminated union where each variant has a type field in JSON.
Field names use camelCase to match TS JSON output exactly.
Variants§
StepStarted
StepCompleted
StepFailed
CheckEvaluated
MatchEvaluated
BranchStarted
BranchCompleted
BranchFailed
JoinStarted
RunPaused
RunCompleted
RunFailed
SafeBoundary
Implementations§
Source§impl ExecutionEvent
impl ExecutionEvent
Sourcepub fn event_type(&self) -> &'static str
pub fn event_type(&self) -> &'static str
Returns the event type name as a static string.
Trait Implementations§
Source§impl Clone for ExecutionEvent
impl Clone for ExecutionEvent
Source§impl Debug for ExecutionEvent
impl Debug for ExecutionEvent
Source§impl<'de> Deserialize<'de> for ExecutionEvent
impl<'de> Deserialize<'de> for ExecutionEvent
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 ExecutionEvent
impl RefUnwindSafe for ExecutionEvent
impl Send for ExecutionEvent
impl Sync for ExecutionEvent
impl Unpin for ExecutionEvent
impl UnsafeUnpin for ExecutionEvent
impl UnwindSafe for ExecutionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more