#[non_exhaustive]pub struct RollbackSafeUpgradeStatus {
pub mode: Mode,
pub control_plane_upgrade_rollback_end_time: Option<Timestamp>,
pub previous_version: String,
/* private fields */
}Expand description
RollbackSafeUpgradeStatus contains the rollback-safe upgrade status of a cluster.
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.mode: ModeOutput only. The mode of the rollback-safe upgrade.
control_plane_upgrade_rollback_end_time: Option<Timestamp>Output only. The rollback-safe mode expiration time.
previous_version: StringOutput only. The GKE version that the cluster previously used before step-one upgrade.
Implementations§
Source§impl RollbackSafeUpgradeStatus
impl RollbackSafeUpgradeStatus
Sourcepub fn set_control_plane_upgrade_rollback_end_time<T>(self, v: T) -> Self
pub fn set_control_plane_upgrade_rollback_end_time<T>(self, v: T) -> Self
Sets the value of control_plane_upgrade_rollback_end_time.
§Example
ⓘ
use wkt::Timestamp;
let x = RollbackSafeUpgradeStatus::new().set_control_plane_upgrade_rollback_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_control_plane_upgrade_rollback_end_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_control_plane_upgrade_rollback_end_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of control_plane_upgrade_rollback_end_time.
§Example
ⓘ
use wkt::Timestamp;
let x = RollbackSafeUpgradeStatus::new().set_or_clear_control_plane_upgrade_rollback_end_time(Some(Timestamp::default()/* use setters */));
let x = RollbackSafeUpgradeStatus::new().set_or_clear_control_plane_upgrade_rollback_end_time(None::<Timestamp>);Sourcepub fn set_previous_version<T: Into<String>>(self, v: T) -> Self
pub fn set_previous_version<T: Into<String>>(self, v: T) -> Self
Sets the value of previous_version.
§Example
ⓘ
let x = RollbackSafeUpgradeStatus::new().set_previous_version("example");Trait Implementations§
Source§impl Clone for RollbackSafeUpgradeStatus
impl Clone for RollbackSafeUpgradeStatus
Source§fn clone(&self) -> RollbackSafeUpgradeStatus
fn clone(&self) -> RollbackSafeUpgradeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RollbackSafeUpgradeStatus
impl Debug for RollbackSafeUpgradeStatus
Source§impl Default for RollbackSafeUpgradeStatus
impl Default for RollbackSafeUpgradeStatus
Source§fn default() -> RollbackSafeUpgradeStatus
fn default() -> RollbackSafeUpgradeStatus
Returns the “default value” for a type. Read more
Source§impl Message for RollbackSafeUpgradeStatus
impl Message for RollbackSafeUpgradeStatus
impl StructuralPartialEq for RollbackSafeUpgradeStatus
Auto Trait Implementations§
impl Freeze for RollbackSafeUpgradeStatus
impl RefUnwindSafe for RollbackSafeUpgradeStatus
impl Send for RollbackSafeUpgradeStatus
impl Sync for RollbackSafeUpgradeStatus
impl Unpin for RollbackSafeUpgradeStatus
impl UnsafeUnpin for RollbackSafeUpgradeStatus
impl UnwindSafe for RollbackSafeUpgradeStatus
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