#[non_exhaustive]pub struct CertificateAuthority {
pub name: String,
pub server_ca: Option<ServerCa>,
/* private fields */
}Expand description
Redis cluster certificate authority
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.name: StringIdentifier. Unique name of the resource in this scope including project,
location and cluster using the form:
projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority
server_ca: Option<ServerCa>server ca information
Implementations§
Source§impl CertificateAuthority
impl CertificateAuthority
pub fn new() -> Self
Sourcepub fn set_server_ca<T: Into<Option<ServerCa>>>(self, v: T) -> Self
pub fn set_server_ca<T: Into<Option<ServerCa>>>(self, v: T) -> Self
Sets the value of server_ca.
Note that all the setters affecting server_ca are mutually
exclusive.
Sourcepub fn managed_server_ca(&self) -> Option<&Box<ManagedCertificateAuthority>>
pub fn managed_server_ca(&self) -> Option<&Box<ManagedCertificateAuthority>>
The value of server_ca
if it holds a ManagedServerCa, None if the field is not set or
holds a different branch.
Sourcepub fn set_managed_server_ca<T: Into<Box<ManagedCertificateAuthority>>>(
self,
v: T,
) -> Self
pub fn set_managed_server_ca<T: Into<Box<ManagedCertificateAuthority>>>( self, v: T, ) -> Self
Sets the value of server_ca
to hold a ManagedServerCa.
Note that all the setters affecting server_ca are
mutually exclusive.
Trait Implementations§
Source§impl Clone for CertificateAuthority
impl Clone for CertificateAuthority
Source§fn clone(&self) -> CertificateAuthority
fn clone(&self) -> CertificateAuthority
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 CertificateAuthority
impl Debug for CertificateAuthority
Source§impl Default for CertificateAuthority
impl Default for CertificateAuthority
Source§fn default() -> CertificateAuthority
fn default() -> CertificateAuthority
Returns the “default value” for a type. Read more
Source§impl Message for CertificateAuthority
impl Message for CertificateAuthority
Source§impl PartialEq for CertificateAuthority
impl PartialEq for CertificateAuthority
impl StructuralPartialEq for CertificateAuthority
Auto Trait Implementations§
impl Freeze for CertificateAuthority
impl RefUnwindSafe for CertificateAuthority
impl Send for CertificateAuthority
impl Sync for CertificateAuthority
impl Unpin for CertificateAuthority
impl UnwindSafe for CertificateAuthority
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