#[non_exhaustive]pub struct SecurityBulletin {
pub bulletin_id: String,
pub submission_time: Option<Timestamp>,
pub suggested_upgrade_version: String,
/* private fields */
}Expand description
SecurityBulletin are notifications of vulnerabilities of Google products.
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.bulletin_id: StringID of the bulletin corresponding to the vulnerability.
submission_time: Option<Timestamp>Submission time of this Security Bulletin.
suggested_upgrade_version: StringThis represents a version that the cluster receiving this notification should be upgraded to, based on its current version. For example, 1.15.0
Implementations§
Source§impl SecurityBulletin
impl SecurityBulletin
pub fn new() -> Self
Sourcepub fn set_bulletin_id<T: Into<String>>(self, v: T) -> Self
pub fn set_bulletin_id<T: Into<String>>(self, v: T) -> Self
Sets the value of bulletin_id.
§Example
ⓘ
let x = SecurityBulletin::new().set_bulletin_id("example");Sourcepub fn set_submission_time<T>(self, v: T) -> Self
pub fn set_submission_time<T>(self, v: T) -> Self
Sets the value of submission_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SecurityBulletin::new().set_submission_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_submission_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_submission_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of submission_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SecurityBulletin::new().set_or_clear_submission_time(Some(Timestamp::default()/* use setters */));
let x = SecurityBulletin::new().set_or_clear_submission_time(None::<Timestamp>);Sourcepub fn set_suggested_upgrade_version<T: Into<String>>(self, v: T) -> Self
pub fn set_suggested_upgrade_version<T: Into<String>>(self, v: T) -> Self
Sets the value of suggested_upgrade_version.
§Example
ⓘ
let x = SecurityBulletin::new().set_suggested_upgrade_version("example");Trait Implementations§
Source§impl Clone for SecurityBulletin
impl Clone for SecurityBulletin
Source§fn clone(&self) -> SecurityBulletin
fn clone(&self) -> SecurityBulletin
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 SecurityBulletin
impl Debug for SecurityBulletin
Source§impl Default for SecurityBulletin
impl Default for SecurityBulletin
Source§fn default() -> SecurityBulletin
fn default() -> SecurityBulletin
Returns the “default value” for a type. Read more
Source§impl Message for SecurityBulletin
impl Message for SecurityBulletin
Source§impl PartialEq for SecurityBulletin
impl PartialEq for SecurityBulletin
impl StructuralPartialEq for SecurityBulletin
Auto Trait Implementations§
impl Freeze for SecurityBulletin
impl RefUnwindSafe for SecurityBulletin
impl Send for SecurityBulletin
impl Sync for SecurityBulletin
impl Unpin for SecurityBulletin
impl UnwindSafe for SecurityBulletin
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