Struct nomad_client::models::reschedule_policy::ReschedulePolicy
source · pub struct ReschedulePolicy {
pub attempts: Option<i32>,
pub interval: Option<i64>,
pub delay: Option<i64>,
pub delay_function: Option<String>,
pub max_delay: Option<i64>,
pub unlimited: Option<bool>,
}
Fields§
§attempts: Option<i32>
§interval: Option<i64>
§delay: Option<i64>
§delay_function: Option<String>
§max_delay: Option<i64>
§unlimited: Option<bool>
Implementations§
source§impl ReschedulePolicy
impl ReschedulePolicy
pub fn new() -> ReschedulePolicy
Trait Implementations§
source§impl Clone for ReschedulePolicy
impl Clone for ReschedulePolicy
source§fn clone(&self) -> ReschedulePolicy
fn clone(&self) -> ReschedulePolicy
Returns a copy 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 ReschedulePolicy
impl Debug for ReschedulePolicy
source§impl<'de> Deserialize<'de> for ReschedulePolicy
impl<'de> Deserialize<'de> for ReschedulePolicy
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<ReschedulePolicy> for ReschedulePolicy
impl PartialEq<ReschedulePolicy> for ReschedulePolicy
source§fn eq(&self, other: &ReschedulePolicy) -> bool
fn eq(&self, other: &ReschedulePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.