Struct bollard::models::ServiceSpecRollbackConfig
source · pub struct ServiceSpecRollbackConfig {
pub parallelism: Option<i64>,
pub delay: Option<i64>,
pub failure_action: Option<ServiceSpecRollbackConfigFailureActionEnum>,
pub monitor: Option<i64>,
pub max_failure_ratio: Option<f64>,
pub order: Option<ServiceSpecRollbackConfigOrderEnum>,
}
Expand description
Specification for the rollback strategy of the service.
Fields§
§parallelism: Option<i64>
Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism).
delay: Option<i64>
Amount of time between rollback iterations, in nanoseconds.
failure_action: Option<ServiceSpecRollbackConfigFailureActionEnum>
Action to take if an rolled back task fails to run, or stops running during the rollback.
monitor: Option<i64>
Amount of time to monitor each rolled back task for failures, in nanoseconds.
max_failure_ratio: Option<f64>
The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1.
order: Option<ServiceSpecRollbackConfigOrderEnum>
The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.
Trait Implementations§
source§impl Clone for ServiceSpecRollbackConfig
impl Clone for ServiceSpecRollbackConfig
source§fn clone(&self) -> ServiceSpecRollbackConfig
fn clone(&self) -> ServiceSpecRollbackConfig
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 ServiceSpecRollbackConfig
impl Debug for ServiceSpecRollbackConfig
source§impl Default for ServiceSpecRollbackConfig
impl Default for ServiceSpecRollbackConfig
source§fn default() -> ServiceSpecRollbackConfig
fn default() -> ServiceSpecRollbackConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceSpecRollbackConfig
impl<'de> Deserialize<'de> for ServiceSpecRollbackConfig
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceSpecRollbackConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServiceSpecRollbackConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ServiceSpecRollbackConfig
impl Serialize for ServiceSpecRollbackConfig
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ServiceSpecRollbackConfig
Auto Trait Implementations§
impl Freeze for ServiceSpecRollbackConfig
impl RefUnwindSafe for ServiceSpecRollbackConfig
impl Send for ServiceSpecRollbackConfig
impl Sync for ServiceSpecRollbackConfig
impl Unpin for ServiceSpecRollbackConfig
impl UnwindSafe for ServiceSpecRollbackConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)