pub struct UpdateStrategy {
pub stagger: Option<TimeDelta>,
pub max_parallel: Option<i64>,
pub health_check: Option<String>,
pub canary: Option<i64>,
pub auto_revert: Option<bool>,
pub min_healthy_time: Option<TimeDelta>,
pub healthy_deadline: Option<TimeDelta>,
pub progress_deadline: Option<TimeDelta>,
pub auto_promote: Option<bool>,
}
Expand description
UpdateStrategy defines a task groups update strategy.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§stagger: Option<TimeDelta>
§max_parallel: Option<i64>
§health_check: Option<String>
§canary: Option<i64>
§auto_revert: Option<bool>
§min_healthy_time: Option<TimeDelta>
§healthy_deadline: Option<TimeDelta>
§progress_deadline: Option<TimeDelta>
§auto_promote: Option<bool>
Trait Implementations§
Source§impl Clone for UpdateStrategy
impl Clone for UpdateStrategy
Source§fn clone(&self) -> UpdateStrategy
fn clone(&self) -> UpdateStrategy
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 UpdateStrategy
impl Debug for UpdateStrategy
Source§impl Default for UpdateStrategy
impl Default for UpdateStrategy
Source§fn default() -> UpdateStrategy
fn default() -> UpdateStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateStrategy
impl<'de> Deserialize<'de> for UpdateStrategy
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 UpdateStrategy
impl PartialEq for UpdateStrategy
Source§impl Serialize for UpdateStrategy
impl Serialize for UpdateStrategy
impl StructuralPartialEq for UpdateStrategy
Auto Trait Implementations§
impl Freeze for UpdateStrategy
impl RefUnwindSafe for UpdateStrategy
impl Send for UpdateStrategy
impl Sync for UpdateStrategy
impl Unpin for UpdateStrategy
impl UnwindSafe for UpdateStrategy
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