#[non_exhaustive]pub struct SubordinateConfig {
pub subordinate_config: Option<SubordinateConfig>,
/* private fields */
}Expand description
Describes a subordinate CA’s issuers. This is either a resource name to a known issuing CertificateAuthority, or a PEM issuer certificate chain.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.subordinate_config: Option<SubordinateConfig>Implementations§
Source§impl SubordinateConfig
impl SubordinateConfig
pub fn new() -> Self
Sourcepub fn set_subordinate_config<T: Into<Option<SubordinateConfig>>>(
self,
v: T,
) -> Self
pub fn set_subordinate_config<T: Into<Option<SubordinateConfig>>>( self, v: T, ) -> Self
Sets the value of subordinate_config.
Note that all the setters affecting subordinate_config are mutually
exclusive.
§Example
use google_cloud_security_privateca_v1::model::subordinate_config::SubordinateConfig as SubordinateConfigOneOf;
let x = SubordinateConfig::new().set_subordinate_config(Some(SubordinateConfigOneOf::CertificateAuthority("example".to_string())));The value of subordinate_config
if it holds a CertificateAuthority, None if the field is not set or
holds a different branch.
Sets the value of subordinate_config
to hold a CertificateAuthority.
Note that all the setters affecting subordinate_config are
mutually exclusive.
§Example
let x = SubordinateConfig::new().set_certificate_authority("example");
assert!(x.certificate_authority().is_some());
assert!(x.pem_issuer_chain().is_none());Sourcepub fn pem_issuer_chain(&self) -> Option<&Box<SubordinateConfigChain>>
pub fn pem_issuer_chain(&self) -> Option<&Box<SubordinateConfigChain>>
The value of subordinate_config
if it holds a PemIssuerChain, None if the field is not set or
holds a different branch.
Sourcepub fn set_pem_issuer_chain<T: Into<Box<SubordinateConfigChain>>>(
self,
v: T,
) -> Self
pub fn set_pem_issuer_chain<T: Into<Box<SubordinateConfigChain>>>( self, v: T, ) -> Self
Sets the value of subordinate_config
to hold a PemIssuerChain.
Note that all the setters affecting subordinate_config are
mutually exclusive.
§Example
use google_cloud_security_privateca_v1::model::subordinate_config::SubordinateConfigChain;
let x = SubordinateConfig::new().set_pem_issuer_chain(SubordinateConfigChain::default()/* use setters */);
assert!(x.pem_issuer_chain().is_some());
assert!(x.certificate_authority().is_none());Trait Implementations§
Source§impl Clone for SubordinateConfig
impl Clone for SubordinateConfig
Source§fn clone(&self) -> SubordinateConfig
fn clone(&self) -> SubordinateConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more