#[non_exhaustive]pub struct InstancesListServerCertificatesResponse {
pub ca_certs: Vec<SslCert>,
pub server_certs: Vec<SslCert>,
pub active_version: String,
pub kind: String,
/* private fields */
}Expand description
Instances ListServerCertificates response.
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.ca_certs: Vec<SslCert>List of server CA certificates for the instance.
server_certs: Vec<SslCert>List of server certificates for the instance, signed by the corresponding
CA from the ca_certs list.
active_version: StringThe sha1_fingerprint of the active certificate from server_certs.
kind: StringThis is always sql#instancesListServerCertificates.
Implementations§
Source§impl InstancesListServerCertificatesResponse
impl InstancesListServerCertificatesResponse
pub fn new() -> Self
Sourcepub fn set_ca_certs<T, V>(self, v: T) -> Self
pub fn set_ca_certs<T, V>(self, v: T) -> Self
Sourcepub fn set_server_certs<T, V>(self, v: T) -> Self
pub fn set_server_certs<T, V>(self, v: T) -> Self
Sets the value of server_certs.
§Example
ⓘ
use google_cloud_sql_v1::model::SslCert;
let x = InstancesListServerCertificatesResponse::new()
.set_server_certs([
SslCert::default()/* use setters */,
SslCert::default()/* use (different) setters */,
]);Sourcepub fn set_active_version<T: Into<String>>(self, v: T) -> Self
pub fn set_active_version<T: Into<String>>(self, v: T) -> Self
Sets the value of active_version.
§Example
ⓘ
let x = InstancesListServerCertificatesResponse::new().set_active_version("example");Trait Implementations§
Source§impl Clone for InstancesListServerCertificatesResponse
impl Clone for InstancesListServerCertificatesResponse
Source§fn clone(&self) -> InstancesListServerCertificatesResponse
fn clone(&self) -> InstancesListServerCertificatesResponse
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 Default for InstancesListServerCertificatesResponse
impl Default for InstancesListServerCertificatesResponse
Source§fn default() -> InstancesListServerCertificatesResponse
fn default() -> InstancesListServerCertificatesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for InstancesListServerCertificatesResponse
impl PartialEq for InstancesListServerCertificatesResponse
Source§fn eq(&self, other: &InstancesListServerCertificatesResponse) -> bool
fn eq(&self, other: &InstancesListServerCertificatesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstancesListServerCertificatesResponse
Auto Trait Implementations§
impl Freeze for InstancesListServerCertificatesResponse
impl RefUnwindSafe for InstancesListServerCertificatesResponse
impl Send for InstancesListServerCertificatesResponse
impl Sync for InstancesListServerCertificatesResponse
impl Unpin for InstancesListServerCertificatesResponse
impl UnwindSafe for InstancesListServerCertificatesResponse
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