pub struct Retry {
pub attempts: Option<i64>,
pub backoff_mode: Option<String>,
pub wait: Option<Duration>,
}Expand description
Retries the failed job.
This type is not used in any activity, and only used as part of another schema.
Fields§
§attempts: Option<i64>Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.
backoff_mode: Option<String>Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if wait is 0.
wait: Option<Duration>Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Retry
impl<'de> Deserialize<'de> for Retry
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 Part for Retry
Auto Trait Implementations§
impl Freeze for Retry
impl RefUnwindSafe for Retry
impl Send for Retry
impl Sync for Retry
impl Unpin for Retry
impl UnwindSafe for Retry
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