#[non_exhaustive]pub struct Rollback {
pub destination_phase: String,
pub disable_rollback_if_rollout_pending: bool,
/* private fields */
}
Expand description
Rolls back a Rollout
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination_phase: String
Optional. The starting phase ID for the Rollout
. If unspecified, the
Rollout
will start in the stable phase.
disable_rollback_if_rollout_pending: bool
Optional. If pending rollout exists on the target, the rollback operation will be aborted.
Implementations§
Source§impl Rollback
impl Rollback
pub fn new() -> Self
Sourcepub fn set_destination_phase<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_phase<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_phase.
Sourcepub fn set_disable_rollback_if_rollout_pending<T: Into<bool>>(
self,
v: T,
) -> Self
pub fn set_disable_rollback_if_rollout_pending<T: Into<bool>>( self, v: T, ) -> Self
Sets the value of disable_rollback_if_rollout_pending.
Trait Implementations§
impl StructuralPartialEq for Rollback
Auto Trait Implementations§
impl Freeze for Rollback
impl RefUnwindSafe for Rollback
impl Send for Rollback
impl Sync for Rollback
impl Unpin for Rollback
impl UnwindSafe for Rollback
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