#[non_exhaustive]pub struct PublishingOptions {
pub publish_ca_cert: bool,
pub publish_crl: bool,
pub encoding_format: EncodingFormat,
/* private fields */
}Expand description
Options relating to the publication of each CertificateAuthority’s CA certificate and CRLs and their inclusion as extensions in issued Certificates. The options set here apply to certificates issued by any CertificateAuthority in the CaPool.
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.publish_ca_cert: boolOptional. When true, publishes each CertificateAuthority’s CA certificate and includes its URL in the “Authority Information Access” X.509 extension in all issued Certificates. If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
publish_crl: boolOptional. When true, publishes each CertificateAuthority’s CRL and includes its URL in the “CRL Distribution Points” X.509 extension in all issued Certificates. If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
encoding_format: EncodingFormatOptional. Specifies the encoding format of each CertificateAuthority resource’s CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
Implementations§
Source§impl PublishingOptions
impl PublishingOptions
pub fn new() -> Self
Sourcepub fn set_publish_ca_cert<T: Into<bool>>(self, v: T) -> Self
pub fn set_publish_ca_cert<T: Into<bool>>(self, v: T) -> Self
Sets the value of publish_ca_cert.
§Example
let x = PublishingOptions::new().set_publish_ca_cert(true);Sourcepub fn set_publish_crl<T: Into<bool>>(self, v: T) -> Self
pub fn set_publish_crl<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_encoding_format<T: Into<EncodingFormat>>(self, v: T) -> Self
pub fn set_encoding_format<T: Into<EncodingFormat>>(self, v: T) -> Self
Sets the value of encoding_format.
§Example
use google_cloud_security_privateca_v1::model::ca_pool::publishing_options::EncodingFormat;
let x0 = PublishingOptions::new().set_encoding_format(EncodingFormat::Pem);
let x1 = PublishingOptions::new().set_encoding_format(EncodingFormat::Der);Trait Implementations§
Source§impl Clone for PublishingOptions
impl Clone for PublishingOptions
Source§fn clone(&self) -> PublishingOptions
fn clone(&self) -> PublishingOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more