#[non_exhaustive]pub struct UpgradeInfoEvent {
pub resource_type: UpgradeResourceType,
pub operation: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub current_version: String,
pub target_version: String,
pub resource: String,
pub state: State,
pub description: String,
}Expand description
UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource_type: UpgradeResourceTypeThe resource type associated with the upgrade.
operation: StringThe operation associated with this upgrade.
start_time: Option<Timestamp>The time when the operation was started.
end_time: Option<Timestamp>The time when the operation ended.
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.
state: StateOutput only. The state of the upgrade.
description: StringA brief description of the event.
Implementations§
Source§impl UpgradeInfoEvent
impl UpgradeInfoEvent
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_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_start_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of start_time.
Sourcepub fn set_end_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_end_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of end_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.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Trait Implementations§
Source§impl Clone for UpgradeInfoEvent
impl Clone for UpgradeInfoEvent
Source§fn clone(&self) -> UpgradeInfoEvent
fn clone(&self) -> UpgradeInfoEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more