pub struct WorkflowTerminalOutcome {
pub kind: WorkflowTerminalKind,
pub workflow_id: String,
pub run_id: Option<String>,
pub reason: String,
pub failure_category: Option<String>,
pub failure_id: Option<String>,
pub exception_type: Option<String>,
pub exception_class: Option<String>,
pub non_retryable: Option<bool>,
pub message: Option<String>,
pub exception: Option<Value>,
pub raw: Value,
}Expand description
A typed terminal workflow outcome with durable identity and failure metadata.
Match the corresponding Error variant and inspect these fields instead
of parsing its display representation. Fields remain None when an older
server did not publish that metadata.
Fields§
§kind: WorkflowTerminalKind§workflow_id: String§run_id: Option<String>§reason: String§failure_category: Option<String>§failure_id: Option<String>§exception_type: Option<String>§exception_class: Option<String>§non_retryable: Option<bool>§message: Option<String>§exception: Option<Value>§raw: ValueTrait 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 Display for WorkflowTerminalOutcome
impl Display for WorkflowTerminalOutcome
Source§impl Error for WorkflowTerminalOutcome
impl Error for WorkflowTerminalOutcome
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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