#[non_exhaustive]pub struct TlsCertificate {
pub serial_number: String,
pub cert: String,
pub create_time: Option<Timestamp>,
pub expire_time: Option<Timestamp>,
pub sha1_fingerprint: String,
/* private fields */
}Expand description
TlsCertificate Resource
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.serial_number: StringSerial number, as extracted from the certificate.
cert: StringPEM representation.
create_time: Option<Timestamp>Output only. The time when the certificate was created in RFC
3339 format, for example
2020-05-18T00:00:00.094Z.
expire_time: Option<Timestamp>Output only. The time when the certificate expires in RFC
3339 format, for example
2020-05-18T00:00:00.094Z.
sha1_fingerprint: StringSha1 Fingerprint of the certificate.
Implementations§
Source§impl TlsCertificate
impl TlsCertificate
pub fn new() -> Self
Sourcepub fn set_serial_number<T: Into<String>>(self, v: T) -> Self
pub fn set_serial_number<T: Into<String>>(self, v: T) -> Self
Sets the value of serial_number.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Sourcepub fn set_sha1_fingerprint<T: Into<String>>(self, v: T) -> Self
pub fn set_sha1_fingerprint<T: Into<String>>(self, v: T) -> Self
Sets the value of sha1_fingerprint.
Trait Implementations§
Source§impl Clone for TlsCertificate
impl Clone for TlsCertificate
Source§fn clone(&self) -> TlsCertificate
fn clone(&self) -> TlsCertificate
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 TlsCertificate
impl Debug for TlsCertificate
Source§impl Default for TlsCertificate
impl Default for TlsCertificate
Source§fn default() -> TlsCertificate
fn default() -> TlsCertificate
Returns the “default value” for a type. Read more
Source§impl Message for TlsCertificate
impl Message for TlsCertificate
Source§impl PartialEq for TlsCertificate
impl PartialEq for TlsCertificate
impl StructuralPartialEq for TlsCertificate
Auto Trait Implementations§
impl Freeze for TlsCertificate
impl RefUnwindSafe for TlsCertificate
impl Send for TlsCertificate
impl Sync for TlsCertificate
impl Unpin for TlsCertificate
impl UnwindSafe for TlsCertificate
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