#[non_exhaustive]pub struct UpgradeAvailableEvent {
pub version: String,
pub resource_type: UpgradeResourceType,
pub release_channel: Option<ReleaseChannel>,
pub resource: String,
}Expand description
UpgradeAvailableEvent is a notification sent to customers when a new available version is released.
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.version: StringThe release version available for upgrade.
resource_type: UpgradeResourceTypeThe resource type of the release version.
release_channel: Option<ReleaseChannel>The release channel of the version. If empty, it means a non-channel release.
resource: StringOptional relative path to the resource. For example, the relative path of the node pool.
Implementations§
Source§impl UpgradeAvailableEvent
impl UpgradeAvailableEvent
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
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_release_channel<T: Into<Option<ReleaseChannel>>>(self, v: T) -> Self
pub fn set_release_channel<T: Into<Option<ReleaseChannel>>>(self, v: T) -> Self
Sets the value of release_channel.
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 UpgradeAvailableEvent
impl Clone for UpgradeAvailableEvent
Source§fn clone(&self) -> UpgradeAvailableEvent
fn clone(&self) -> UpgradeAvailableEvent
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 UpgradeAvailableEvent
impl Debug for UpgradeAvailableEvent
Source§impl Default for UpgradeAvailableEvent
impl Default for UpgradeAvailableEvent
Source§fn default() -> UpgradeAvailableEvent
fn default() -> UpgradeAvailableEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpgradeAvailableEventwhere
UpgradeAvailableEvent: Default,
impl<'de> Deserialize<'de> for UpgradeAvailableEventwhere
UpgradeAvailableEvent: 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 UpgradeAvailableEvent
impl Message for UpgradeAvailableEvent
Source§impl PartialEq for UpgradeAvailableEvent
impl PartialEq for UpgradeAvailableEvent
Source§impl Serialize for UpgradeAvailableEvent
impl Serialize for UpgradeAvailableEvent
impl StructuralPartialEq for UpgradeAvailableEvent
Auto Trait Implementations§
impl Freeze for UpgradeAvailableEvent
impl RefUnwindSafe for UpgradeAvailableEvent
impl Send for UpgradeAvailableEvent
impl Sync for UpgradeAvailableEvent
impl Unpin for UpgradeAvailableEvent
impl UnwindSafe for UpgradeAvailableEvent
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