Struct google_api_proto::google::cloud::security::privateca::v1::CertificateIdentityConstraints
source · pub struct CertificateIdentityConstraints {
pub cel_expression: Option<Expr>,
pub allow_subject_passthrough: Option<bool>,
pub allow_subject_alt_names_passthrough: Option<bool>,
}
Expand description
Describes constraints on a [Certificate][google.cloud.security.privateca.v1.Certificate]’s [Subject][google.cloud.security.privateca.v1.Subject] and [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames].
Fields§
§cel_expression: Option<Expr>
Optional. A CEL expression that may be used to validate the resolved X.509 Subject and/or Subject Alternative Name before a certificate is signed. To see the full allowed syntax and some examples, see https://cloud.google.com/certificate-authority-service/docs/using-cel
allow_subject_passthrough: Option<bool>
Required. If this is true, the [Subject][google.cloud.security.privateca.v1.Subject] field may be copied from a certificate request into the signed certificate. Otherwise, the requested [Subject][google.cloud.security.privateca.v1.Subject] will be discarded.
allow_subject_alt_names_passthrough: Option<bool>
Required. If this is true, the [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] extension may be copied from a certificate request into the signed certificate. Otherwise, the requested [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames] will be discarded.
Implementations§
source§impl CertificateIdentityConstraints
impl CertificateIdentityConstraints
sourcepub fn allow_subject_passthrough(&self) -> bool
pub fn allow_subject_passthrough(&self) -> bool
Returns the value of allow_subject_passthrough
, or the default value if allow_subject_passthrough
is unset.
sourcepub fn allow_subject_alt_names_passthrough(&self) -> bool
pub fn allow_subject_alt_names_passthrough(&self) -> bool
Returns the value of allow_subject_alt_names_passthrough
, or the default value if allow_subject_alt_names_passthrough
is unset.
Trait Implementations§
source§impl Clone for CertificateIdentityConstraints
impl Clone for CertificateIdentityConstraints
source§fn clone(&self) -> CertificateIdentityConstraints
fn clone(&self) -> CertificateIdentityConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for CertificateIdentityConstraints
impl Message for CertificateIdentityConstraints
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CertificateIdentityConstraints
impl PartialEq for CertificateIdentityConstraints
source§fn eq(&self, other: &CertificateIdentityConstraints) -> bool
fn eq(&self, other: &CertificateIdentityConstraints) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CertificateIdentityConstraints
Auto Trait Implementations§
impl Freeze for CertificateIdentityConstraints
impl RefUnwindSafe for CertificateIdentityConstraints
impl Send for CertificateIdentityConstraints
impl Sync for CertificateIdentityConstraints
impl Unpin for CertificateIdentityConstraints
impl UnwindSafe for CertificateIdentityConstraints
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request