pub enum FlowEvent {
Show 15 variants
RunCreated {
spec: WorkflowSpec,
input: JsonValue,
},
RunStarted,
RunCompleted {
output: JsonValue,
},
RunFailed {
error: String,
},
RunCancelled {
reason: Option<String>,
},
StepCreated {
step_id: String,
step_name: String,
input: JsonValue,
retry: RetryPolicy,
},
StepStarted {
step_id: String,
attempt: u32,
},
StepCompleted {
step_id: String,
output: JsonValue,
},
StepRetrying {
step_id: String,
attempt: u32,
error: String,
retry_after: Option<DateTime<Utc>>,
},
StepFailed {
step_id: String,
attempt: u32,
error: String,
},
WaitCreated {
wait_id: String,
resume_at: DateTime<Utc>,
},
WaitCompleted {
wait_id: String,
},
HookCreated {
hook_id: String,
token: String,
metadata: JsonValue,
},
HookReceived {
hook_id: String,
payload: JsonValue,
},
HookDisposed {
hook_id: String,
},
}Expand description
Event persisted as the single source of truth for a workflow run.
Variants§
RunCreated
RunStarted
RunCompleted
RunFailed
RunCancelled
StepCreated
StepStarted
StepCompleted
StepRetrying
StepFailed
WaitCreated
WaitCompleted
HookCreated
HookReceived
HookDisposed
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowEvent
impl<'de> Deserialize<'de> for FlowEvent
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
impl StructuralPartialEq for FlowEvent
Auto Trait Implementations§
impl Freeze for FlowEvent
impl RefUnwindSafe for FlowEvent
impl Send for FlowEvent
impl Sync for FlowEvent
impl Unpin for FlowEvent
impl UnsafeUnpin for FlowEvent
impl UnwindSafe for FlowEvent
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