#[non_exhaustive]pub struct UpgradeAvailableEvent {
pub version: String,
pub resource_type: UpgradeResourceType,
pub release_channel: Option<ReleaseChannel>,
pub resource: String,
/* private fields */
}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
pub fn new() -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
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.
§Example
ⓘ
use google_cloud_container_v1::model::UpgradeResourceType;
let x0 = UpgradeAvailableEvent::new().set_resource_type(UpgradeResourceType::Master);
let x1 = UpgradeAvailableEvent::new().set_resource_type(UpgradeResourceType::NodePool);Sourcepub fn set_release_channel<T>(self, v: T) -> Selfwhere
T: Into<ReleaseChannel>,
pub fn set_release_channel<T>(self, v: T) -> Selfwhere
T: Into<ReleaseChannel>,
Sets the value of release_channel.
§Example
ⓘ
use google_cloud_container_v1::model::ReleaseChannel;
let x = UpgradeAvailableEvent::new().set_release_channel(ReleaseChannel::default()/* use setters */);Sourcepub fn set_or_clear_release_channel<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReleaseChannel>,
pub fn set_or_clear_release_channel<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReleaseChannel>,
Sets or clears the value of release_channel.
§Example
ⓘ
use google_cloud_container_v1::model::ReleaseChannel;
let x = UpgradeAvailableEvent::new().set_or_clear_release_channel(Some(ReleaseChannel::default()/* use setters */));
let x = UpgradeAvailableEvent::new().set_or_clear_release_channel(None::<ReleaseChannel>);Trait Implementations§
Source§impl Clone for UpgradeAvailableEvent
impl Clone for UpgradeAvailableEvent
Source§fn clone(&self) -> UpgradeAvailableEvent
fn clone(&self) -> UpgradeAvailableEvent
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 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 Message for UpgradeAvailableEvent
impl Message for UpgradeAvailableEvent
Source§impl PartialEq for UpgradeAvailableEvent
impl PartialEq 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