#[non_exhaustive]pub struct KubeletCertInfo {
pub tpm_bootstrap_cert_expire_time: Option<Timestamp>,
pub non_tpm_bootstrap_cert_expire_time: Option<Timestamp>,
/* private fields */
}Expand description
Contains expiry information about the kubelet certificate.
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.tpm_bootstrap_cert_expire_time: Option<Timestamp>Output only.
non_tpm_bootstrap_cert_expire_time: Option<Timestamp>Output only.
Implementations§
Source§impl KubeletCertInfo
impl KubeletCertInfo
Sourcepub fn set_tpm_bootstrap_cert_expire_time<T>(self, v: T) -> Self
pub fn set_tpm_bootstrap_cert_expire_time<T>(self, v: T) -> Self
Sets the value of tpm_bootstrap_cert_expire_time.
§Example
ⓘ
use wkt::Timestamp;
let x = KubeletCertInfo::new().set_tpm_bootstrap_cert_expire_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_tpm_bootstrap_cert_expire_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_tpm_bootstrap_cert_expire_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of tpm_bootstrap_cert_expire_time.
§Example
ⓘ
use wkt::Timestamp;
let x = KubeletCertInfo::new().set_or_clear_tpm_bootstrap_cert_expire_time(Some(Timestamp::default()/* use setters */));
let x = KubeletCertInfo::new().set_or_clear_tpm_bootstrap_cert_expire_time(None::<Timestamp>);Sourcepub fn set_non_tpm_bootstrap_cert_expire_time<T>(self, v: T) -> Self
pub fn set_non_tpm_bootstrap_cert_expire_time<T>(self, v: T) -> Self
Sets the value of non_tpm_bootstrap_cert_expire_time.
§Example
ⓘ
use wkt::Timestamp;
let x = KubeletCertInfo::new().set_non_tpm_bootstrap_cert_expire_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_non_tpm_bootstrap_cert_expire_time<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_non_tpm_bootstrap_cert_expire_time<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of non_tpm_bootstrap_cert_expire_time.
§Example
ⓘ
use wkt::Timestamp;
let x = KubeletCertInfo::new().set_or_clear_non_tpm_bootstrap_cert_expire_time(Some(Timestamp::default()/* use setters */));
let x = KubeletCertInfo::new().set_or_clear_non_tpm_bootstrap_cert_expire_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for KubeletCertInfo
impl Clone for KubeletCertInfo
Source§fn clone(&self) -> KubeletCertInfo
fn clone(&self) -> KubeletCertInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KubeletCertInfo
impl Debug for KubeletCertInfo
Source§impl Default for KubeletCertInfo
impl Default for KubeletCertInfo
Source§fn default() -> KubeletCertInfo
fn default() -> KubeletCertInfo
Returns the “default value” for a type. Read more
Source§impl Message for KubeletCertInfo
impl Message for KubeletCertInfo
Source§impl PartialEq for KubeletCertInfo
impl PartialEq for KubeletCertInfo
impl StructuralPartialEq for KubeletCertInfo
Auto Trait Implementations§
impl Freeze for KubeletCertInfo
impl RefUnwindSafe for KubeletCertInfo
impl Send for KubeletCertInfo
impl Sync for KubeletCertInfo
impl Unpin for KubeletCertInfo
impl UnsafeUnpin for KubeletCertInfo
impl UnwindSafe for KubeletCertInfo
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