pub struct RollbackConfig {
pub parallelism: Option<i64>,
pub delay: Option<String>,
pub failure_action: Option<RollbackFailureAction>,
pub monitor: Option<String>,
pub max_failure_ratio: Option<f64>,
pub order: Option<OperationsOrder>,
}Expand description
Configures how the service should be rolled back in case of a failing update.
See more: https://docs.docker.com/reference/compose-file/deploy/#rollback_config
Fields§
§parallelism: Option<i64>The number of containers to rollback at a time.
delay: Option<String>The time to wait between each container group’s rollback
failure_action: Option<RollbackFailureAction>What to do if a rollback fails. One of continue 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 a rollback.
order: Option<OperationsOrder>Order of operations during rollbacks. 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 RollbackConfig
impl Clone for RollbackConfig
Source§fn clone(&self) -> RollbackConfig
fn clone(&self) -> RollbackConfig
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 RollbackConfig
impl Debug for RollbackConfig
Source§impl Default for RollbackConfig
impl Default for RollbackConfig
Source§fn default() -> RollbackConfig
fn default() -> RollbackConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RollbackConfigwhere
RollbackConfig: Default,
impl<'de> Deserialize<'de> for RollbackConfigwhere
RollbackConfig: 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 RollbackConfig
impl PartialEq for RollbackConfig
Source§impl Serialize for RollbackConfig
impl Serialize for RollbackConfig
impl StructuralPartialEq for RollbackConfig
Auto Trait Implementations§
impl Freeze for RollbackConfig
impl RefUnwindSafe for RollbackConfig
impl Send for RollbackConfig
impl Sync for RollbackConfig
impl Unpin for RollbackConfig
impl UnsafeUnpin for RollbackConfig
impl UnwindSafe for RollbackConfig
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