#[non_exhaustive]pub struct RollbackAttempt {
pub destination_phase: String,
pub rollout_id: String,
pub state: RepairState,
pub state_desc: String,
pub disable_rollback_if_rollout_pending: bool,
/* private fields */
}
Expand description
RollbackAttempt represents an action of rolling back a Cloud Deploy ‘Target’.
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
Output only. The phase to which the rollout will be rolled back to.
rollout_id: String
Output only. ID of the rollback Rollout
to create.
state: RepairState
Output only. Valid state of this rollback action.
state_desc: String
Output only. Description of the state of the Rollback.
disable_rollback_if_rollout_pending: bool
Output only. If active rollout exists on the target, abort this rollback.
Implementations§
Source§impl RollbackAttempt
impl RollbackAttempt
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_rollout_id<T: Into<String>>(self, v: T) -> Self
pub fn set_rollout_id<T: Into<String>>(self, v: T) -> Self
Sets the value of rollout_id.
Sourcepub fn set_state<T: Into<RepairState>>(self, v: T) -> Self
pub fn set_state<T: Into<RepairState>>(self, v: T) -> Self
Sets the value of state.
Sourcepub fn set_state_desc<T: Into<String>>(self, v: T) -> Self
pub fn set_state_desc<T: Into<String>>(self, v: T) -> Self
Sets the value of state_desc.
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§
Source§impl Clone for RollbackAttempt
impl Clone for RollbackAttempt
Source§fn clone(&self) -> RollbackAttempt
fn clone(&self) -> RollbackAttempt
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 RollbackAttempt
impl Debug for RollbackAttempt
Source§impl Default for RollbackAttempt
impl Default for RollbackAttempt
Source§fn default() -> RollbackAttempt
fn default() -> RollbackAttempt
Returns the “default value” for a type. Read more
Source§impl Message for RollbackAttempt
impl Message for RollbackAttempt
Source§impl PartialEq for RollbackAttempt
impl PartialEq for RollbackAttempt
impl StructuralPartialEq for RollbackAttempt
Auto Trait Implementations§
impl Freeze for RollbackAttempt
impl RefUnwindSafe for RollbackAttempt
impl Send for RollbackAttempt
impl Sync for RollbackAttempt
impl Unpin for RollbackAttempt
impl UnwindSafe for RollbackAttempt
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