pub enum FailureAction {
Retry {
max_retries: u32,
retry_target: Option<String>,
feedback_field: Option<String>,
on_exhausted: Option<Box<FailureAction>>,
},
Escalate {
to: String,
},
Skip,
Fail,
}Expand description
Failure handling configuration
Variants§
Retry
Retry the step
Fields
§
on_exhausted: Option<Box<FailureAction>>Action when retries exhausted
Escalate
Escalate to human
Skip
Skip to next step
Fail
Fail the workflow
Trait Implementations§
Source§impl Clone for FailureAction
impl Clone for FailureAction
Source§fn clone(&self) -> FailureAction
fn clone(&self) -> FailureAction
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 FailureAction
impl Debug for FailureAction
Source§impl<'de> Deserialize<'de> for FailureAction
impl<'de> Deserialize<'de> for FailureAction
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 FailureAction
impl RefUnwindSafe for FailureAction
impl Send for FailureAction
impl Sync for FailureAction
impl Unpin for FailureAction
impl UnsafeUnpin for FailureAction
impl UnwindSafe for FailureAction
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