#[non_exhaustive]pub struct CaPool {
pub name: String,
pub tier: Tier,
pub issuance_policy: Option<IssuancePolicy>,
pub publishing_options: Option<PublishingOptions>,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
A CaPool represents a group of CertificateAuthorities that form a trust anchor. A CaPool can be used to manage issuance policies for one or more CertificateAuthority resources and to rotate CA certificates in and out of the trust anchor.
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. The resource name for this
CaPool in the format
projects/*/locations/*/caPools/*.
tier: Tier§issuance_policy: Option<IssuancePolicy>Optional. The IssuancePolicy to control how Certificates will be issued from this CaPool.
publishing_options: Option<PublishingOptions>Optional. The PublishingOptions to follow when issuing Certificates from any CertificateAuthority in this CaPool.
labels: HashMap<String, String>Optional. Labels with user-defined metadata.
Implementations§
Source§impl CaPool
impl CaPool
pub fn new() -> Self
Sourcepub fn set_issuance_policy<T>(self, v: T) -> Selfwhere
T: Into<IssuancePolicy>,
pub fn set_issuance_policy<T>(self, v: T) -> Selfwhere
T: Into<IssuancePolicy>,
Sets the value of issuance_policy.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::ca_pool::IssuancePolicy;
let x = CaPool::new().set_issuance_policy(IssuancePolicy::default()/* use setters */);Sourcepub fn set_or_clear_issuance_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<IssuancePolicy>,
pub fn set_or_clear_issuance_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<IssuancePolicy>,
Sets or clears the value of issuance_policy.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::ca_pool::IssuancePolicy;
let x = CaPool::new().set_or_clear_issuance_policy(Some(IssuancePolicy::default()/* use setters */));
let x = CaPool::new().set_or_clear_issuance_policy(None::<IssuancePolicy>);Sourcepub fn set_publishing_options<T>(self, v: T) -> Selfwhere
T: Into<PublishingOptions>,
pub fn set_publishing_options<T>(self, v: T) -> Selfwhere
T: Into<PublishingOptions>,
Sets the value of publishing_options.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::ca_pool::PublishingOptions;
let x = CaPool::new().set_publishing_options(PublishingOptions::default()/* use setters */);Sourcepub fn set_or_clear_publishing_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<PublishingOptions>,
pub fn set_or_clear_publishing_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<PublishingOptions>,
Sets or clears the value of publishing_options.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::ca_pool::PublishingOptions;
let x = CaPool::new().set_or_clear_publishing_options(Some(PublishingOptions::default()/* use setters */));
let x = CaPool::new().set_or_clear_publishing_options(None::<PublishingOptions>);Trait Implementations§
impl StructuralPartialEq for CaPool
Auto Trait Implementations§
impl Freeze for CaPool
impl RefUnwindSafe for CaPool
impl Send for CaPool
impl Sync for CaPool
impl Unpin for CaPool
impl UnwindSafe for CaPool
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