pub struct UpdateConfig {
pub parallelism: Option<i64>,
pub delay: Option<String>,
pub failure_action: Option<UpdateFailureAction>,
pub monitor: Option<String>,
pub max_failure_ratio: Option<f64>,
pub order: Option<OperationsOrder>,
}Expand description
Configures how the service should be updated. Useful for configuring rolling updates.
See more: https://docs.docker.com/reference/compose-file/deploy/#update_config
Fields§
§parallelism: Option<i64>The number of containers to update at a time.
delay: Option<String>The time to wait between updating a group of containers.
failure_action: Option<UpdateFailureAction>What to do if an update fails. One of continue, rollback, or pause (default: pause).
monitor: Option<String>Duration after each task update to monitor for failure (ns|us|ms|s|m|h) (default 0s).
max_failure_ratio: Option<f64>Failure rate to tolerate during an update.
order: Option<OperationsOrder>Order of operations during updates. One of stop-first (old task is stopped before starting new one), or start-first (new task is started first, and the running tasks briefly overlap) (default stop-first).
Trait Implementations§
Source§impl Clone for UpdateConfig
impl Clone for UpdateConfig
Source§fn clone(&self) -> UpdateConfig
fn clone(&self) -> UpdateConfig
Returns a duplicate 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 UpdateConfig
impl Debug for UpdateConfig
Source§impl Default for UpdateConfig
impl Default for UpdateConfig
Source§fn default() -> UpdateConfig
fn default() -> UpdateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateConfigwhere
UpdateConfig: Default,
impl<'de> Deserialize<'de> for UpdateConfigwhere
UpdateConfig: Default,
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 UpdateConfig
impl PartialEq for UpdateConfig
Source§impl Serialize for UpdateConfig
impl Serialize for UpdateConfig
impl StructuralPartialEq for UpdateConfig
Auto Trait Implementations§
impl Freeze for UpdateConfig
impl RefUnwindSafe for UpdateConfig
impl Send for UpdateConfig
impl Sync for UpdateConfig
impl Unpin for UpdateConfig
impl UnsafeUnpin for UpdateConfig
impl UnwindSafe for UpdateConfig
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