pub struct ServiceRollbackConfig {
pub delay: Box<Option<String>>,
pub failure_action: Box<Option<String>>,
pub max_failure_ratio: Box<Option<String>>,
pub monitor: Box<Option<String>>,
pub order: Box<Option<String>>,
pub parallelism: Box<Option<i32>>,
}
Fields§
§delay: Box<Option<String>>
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to 0s
.
failure_action: Box<Option<String>>
Action on rollback failure: pause | continue. Defaults to pause
.
max_failure_ratio: Box<Option<String>>
Failure rate to tolerate during a rollback. Defaults to 0.0
.
monitor: Box<Option<String>>
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to 5s
.
order: Box<Option<String>>
Rollback order: either ‘stop-first’ or ‘start-first’. Defaults to stop-first
.
parallelism: Box<Option<i32>>
Maximum number of tasks to be rollbacked in one iteration. Defaults to 1
Implementations§
source§impl ServiceRollbackConfig
impl ServiceRollbackConfig
sourcepub fn builder() -> ServiceRollbackConfigBuilder
pub fn builder() -> ServiceRollbackConfigBuilder
Create an instance of ServiceRollbackConfig
using the builder syntax
Trait Implementations§
source§impl Debug for ServiceRollbackConfig
impl Debug for ServiceRollbackConfig
source§impl<'de> Deserialize<'de> for ServiceRollbackConfig
impl<'de> Deserialize<'de> for ServiceRollbackConfig
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
Auto Trait Implementations§
impl Freeze for ServiceRollbackConfig
impl RefUnwindSafe for ServiceRollbackConfig
impl Send for ServiceRollbackConfig
impl Sync for ServiceRollbackConfig
impl Unpin for ServiceRollbackConfig
impl UnwindSafe for ServiceRollbackConfig
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