#[non_exhaustive]pub enum WorkflowTerminalOutcome {
Completed {
output: JsonValue,
},
Failed {
error: String,
},
Cancelled {
reason: Option<String>,
},
TimedOut {
deadline: DateTime<Utc>,
reason: Option<String>,
},
RetryExhausted {
step_id: String,
attempt: u32,
error: String,
},
HostShutdown {
reason: Option<String>,
},
ContinuedAsNew {
successor_run_id: String,
},
}Expand description
Typed terminal result projected from the final run event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The workflow returned a successful output.
Failed
The workflow terminated with an application or runtime error.
Cancelled
The workflow completed cancellation.
TimedOut
The workflow exceeded its deadline.
Fields
RetryExhausted
A step exhausted every permitted attempt.
Fields
HostShutdown
The owning host terminated the run during shutdown.
ContinuedAsNew
This history segment closed after creating a successor.
Trait Implementations§
Source§impl Clone for WorkflowTerminalOutcome
impl Clone for WorkflowTerminalOutcome
Source§fn clone(&self) -> WorkflowTerminalOutcome
fn clone(&self) -> WorkflowTerminalOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkflowTerminalOutcome
impl Debug for WorkflowTerminalOutcome
Source§impl<'de> Deserialize<'de> for WorkflowTerminalOutcome
impl<'de> Deserialize<'de> for WorkflowTerminalOutcome
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
Source§impl PartialEq for WorkflowTerminalOutcome
impl PartialEq for WorkflowTerminalOutcome
Source§impl Serialize for WorkflowTerminalOutcome
impl Serialize for WorkflowTerminalOutcome
impl StructuralPartialEq for WorkflowTerminalOutcome
Auto Trait Implementations§
impl Freeze for WorkflowTerminalOutcome
impl RefUnwindSafe for WorkflowTerminalOutcome
impl Send for WorkflowTerminalOutcome
impl Sync for WorkflowTerminalOutcome
impl Unpin for WorkflowTerminalOutcome
impl UnsafeUnpin for WorkflowTerminalOutcome
impl UnwindSafe for WorkflowTerminalOutcome
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