#[non_exhaustive]pub struct UpgradeEvent {
pub resource_type: UpgradeResourceType,
pub operation: String,
pub operation_start_time: Option<Timestamp>,
pub current_version: String,
pub target_version: String,
pub resource: String,
}Expand description
UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.
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.resource_type: UpgradeResourceTypeThe resource type that is upgrading.
operation: StringThe operation associated with this upgrade.
operation_start_time: Option<Timestamp>The time when the operation was started.
current_version: StringThe current version before the upgrade.
target_version: StringThe target version for the upgrade.
resource: StringOptional relative path to the resource. For example in node pool upgrades, the relative path of the node pool.
Implementations§
Source§impl UpgradeEvent
impl UpgradeEvent
Sourcepub fn set_resource_type<T: Into<UpgradeResourceType>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<UpgradeResourceType>>(self, v: T) -> Self
Sets the value of resource_type.
Sourcepub fn set_operation<T: Into<String>>(self, v: T) -> Self
pub fn set_operation<T: Into<String>>(self, v: T) -> Self
Sets the value of operation.
Sourcepub fn set_operation_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_operation_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of operation_start_time.
Sourcepub fn set_current_version<T: Into<String>>(self, v: T) -> Self
pub fn set_current_version<T: Into<String>>(self, v: T) -> Self
Sets the value of current_version.
Sourcepub fn set_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of target_version.
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of resource.
Trait Implementations§
Source§impl Clone for UpgradeEvent
impl Clone for UpgradeEvent
Source§fn clone(&self) -> UpgradeEvent
fn clone(&self) -> UpgradeEvent
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 UpgradeEvent
impl Debug for UpgradeEvent
Source§impl Default for UpgradeEvent
impl Default for UpgradeEvent
Source§fn default() -> UpgradeEvent
fn default() -> UpgradeEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradeEventwhere
UpgradeEvent: Default,
impl<'de> Deserialize<'de> for UpgradeEventwhere
UpgradeEvent: Default,
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
Source§impl Message for UpgradeEvent
impl Message for UpgradeEvent
Source§impl PartialEq for UpgradeEvent
impl PartialEq for UpgradeEvent
Source§impl Serialize for UpgradeEvent
impl Serialize for UpgradeEvent
impl StructuralPartialEq for UpgradeEvent
Auto Trait Implementations§
impl Freeze for UpgradeEvent
impl RefUnwindSafe for UpgradeEvent
impl Send for UpgradeEvent
impl Sync for UpgradeEvent
impl Unpin for UpgradeEvent
impl UnwindSafe for UpgradeEvent
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