pub struct RetryPolicyDefinition {
pub when: Option<String>,
pub except_when: Option<String>,
pub limit: Option<RetryPolicyLimitDefinition>,
pub delay: Option<OneOfDurationOrIso8601Expression>,
pub backoff: Option<BackoffStrategyDefinition>,
pub jitter: Option<JitterDefinition>,
}Expand description
Represents the definition of a retry policy
Fields§
§when: Option<String>Gets/sets a runtime expression used to determine whether or not to retry running the task, in a given context
except_when: Option<String>Gets/sets a runtime expression used to determine whether or not to retry running the task, in a given context
limit: Option<RetryPolicyLimitDefinition>Gets/sets the limits, if any, of the retry policy
delay: Option<OneOfDurationOrIso8601Expression>Gets/sets the delay duration between retry attempts
backoff: Option<BackoffStrategyDefinition>Gets/sets the backoff strategy to use, if any
jitter: Option<JitterDefinition>Gets/sets the parameters, if any, that control the randomness or variability of the delay between retry attempts
Trait Implementations§
Source§impl Clone for RetryPolicyDefinition
impl Clone for RetryPolicyDefinition
Source§fn clone(&self) -> RetryPolicyDefinition
fn clone(&self) -> RetryPolicyDefinition
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 RetryPolicyDefinition
impl Debug for RetryPolicyDefinition
Source§impl Default for RetryPolicyDefinition
impl Default for RetryPolicyDefinition
Source§fn default() -> RetryPolicyDefinition
fn default() -> RetryPolicyDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetryPolicyDefinition
impl<'de> Deserialize<'de> for RetryPolicyDefinition
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 RetryPolicyDefinition
impl PartialEq for RetryPolicyDefinition
Source§fn eq(&self, other: &RetryPolicyDefinition) -> bool
fn eq(&self, other: &RetryPolicyDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetryPolicyDefinition
impl Serialize for RetryPolicyDefinition
impl StructuralPartialEq for RetryPolicyDefinition
Auto Trait Implementations§
impl Freeze for RetryPolicyDefinition
impl RefUnwindSafe for RetryPolicyDefinition
impl Send for RetryPolicyDefinition
impl Sync for RetryPolicyDefinition
impl Unpin for RetryPolicyDefinition
impl UnsafeUnpin for RetryPolicyDefinition
impl UnwindSafe for RetryPolicyDefinition
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