pub struct RetryPlan {
pub retry: bool,
pub next_attempt: Option<u32>,
pub delay_ms: Option<u64>,
}Expand description
retry: false means the step fails for good; next_attempt / delay_ms are set iff retry.
Fields§
§retry: boolWhether another attempt is scheduled.
next_attempt: Option<u32>The attempt to schedule (attempt + 1).
delay_ms: Option<u64>Delay before that attempt, in milliseconds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RetryPlan
impl<'de> Deserialize<'de> for RetryPlan
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 JsonSchema for RetryPlan
impl JsonSchema for RetryPlan
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for RetryPlan
Auto Trait Implementations§
impl Freeze for RetryPlan
impl RefUnwindSafe for RetryPlan
impl Send for RetryPlan
impl Sync for RetryPlan
impl Unpin for RetryPlan
impl UnsafeUnpin for RetryPlan
impl UnwindSafe for RetryPlan
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