#[non_exhaustive]pub struct SslCert {
pub kind: String,
pub cert_serial_number: String,
pub cert: String,
pub create_time: Option<Timestamp>,
pub common_name: String,
pub expiration_time: Option<Timestamp>,
pub sha1_fingerprint: String,
pub instance: String,
pub self_link: String,
/* private fields */
}
Expand description
SslCerts 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.kind: String
This is always sql#sslCert
.
cert_serial_number: String
Serial number, as extracted from the certificate.
cert: String
PEM representation.
create_time: Option<Timestamp>
The time when the certificate was created in RFC
3339 format, for example
2012-11-15T16:19:00.094Z
common_name: String
User supplied name. Constrained to [a-zA-Z.-_ ]+.
expiration_time: Option<Timestamp>
The time when the certificate expires in RFC
3339 format, for example
2012-11-15T16:19:00.094Z
.
sha1_fingerprint: String
Sha1 Fingerprint.
instance: String
Name of the database instance.
self_link: String
The URI of this resource.
Implementations§
Source§impl SslCert
impl SslCert
pub fn new() -> Self
Sourcepub fn set_cert_serial_number<T: Into<String>>(self, v: T) -> Self
pub fn set_cert_serial_number<T: Into<String>>(self, v: T) -> Self
Sets the value of cert_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_common_name<T: Into<String>>(self, v: T) -> Self
pub fn set_common_name<T: Into<String>>(self, v: T) -> Self
Sets the value of common_name.
Sourcepub fn set_expiration_time<T>(self, v: T) -> Self
pub fn set_expiration_time<T>(self, v: T) -> Self
Sets the value of expiration_time.
Sourcepub fn set_or_clear_expiration_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expiration_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expiration_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.
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sets the value of self_link.
Trait Implementations§
impl StructuralPartialEq for SslCert
Auto Trait Implementations§
impl Freeze for SslCert
impl RefUnwindSafe for SslCert
impl Send for SslCert
impl Sync for SslCert
impl Unpin for SslCert
impl UnwindSafe for SslCert
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