Struct google_api_proto::google::cloud::security::privateca::v1::x509_parameters::NameConstraints
source · pub struct NameConstraints {
pub critical: bool,
pub permitted_dns_names: Vec<String>,
pub excluded_dns_names: Vec<String>,
pub permitted_ip_ranges: Vec<String>,
pub excluded_ip_ranges: Vec<String>,
pub permitted_email_addresses: Vec<String>,
pub excluded_email_addresses: Vec<String>,
pub permitted_uris: Vec<String>,
pub excluded_uris: Vec<String>,
}
Expand description
Describes the X.509 name constraints extension, per https://tools.ietf.org/html/rfc5280#section-4.2.1.10
Fields§
§critical: bool
Indicates whether or not the name constraints are marked critical.
permitted_dns_names: Vec<String>
Contains permitted DNS names. Any DNS name that can be
constructed by simply adding zero or more labels to
the left-hand side of the name satisfies the name constraint.
For example, example.com
, www.example.com
, www.sub.example.com
would satisfy example.com
while example1.com
does not.
excluded_dns_names: Vec<String>
Contains excluded DNS names. Any DNS name that can be
constructed by simply adding zero or more labels to
the left-hand side of the name satisfies the name constraint.
For example, example.com
, www.example.com
, www.sub.example.com
would satisfy example.com
while example1.com
does not.
permitted_ip_ranges: Vec<String>
Contains the permitted IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.
excluded_ip_ranges: Vec<String>
Contains the excluded IP ranges. For IPv4 addresses, the ranges are expressed using CIDR notation as specified in RFC 4632. For IPv6 addresses, the ranges are expressed in similar encoding as IPv4 addresses.
permitted_email_addresses: Vec<String>
Contains the permitted email addresses. The value can be a particular
email address, a hostname to indicate all email addresses on that host or
a domain with a leading period (e.g. .example.com
) to indicate
all email addresses in that domain.
excluded_email_addresses: Vec<String>
Contains the excluded email addresses. The value can be a particular
email address, a hostname to indicate all email addresses on that host or
a domain with a leading period (e.g. .example.com
) to indicate
all email addresses in that domain.
permitted_uris: Vec<String>
Contains the permitted URIs that apply to the host part of the name.
The value can be a hostname or a domain with a
leading period (like .example.com
)
excluded_uris: Vec<String>
Contains the excluded URIs that apply to the host part of the name.
The value can be a hostname or a domain with a
leading period (like .example.com
)
Trait Implementations§
source§impl Clone for NameConstraints
impl Clone for NameConstraints
source§fn clone(&self) -> NameConstraints
fn clone(&self) -> NameConstraints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NameConstraints
impl Debug for NameConstraints
source§impl Default for NameConstraints
impl Default for NameConstraints
source§impl Message for NameConstraints
impl Message for NameConstraints
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 NameConstraints
impl PartialEq for NameConstraints
source§fn eq(&self, other: &NameConstraints) -> bool
fn eq(&self, other: &NameConstraints) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NameConstraints
Auto Trait Implementations§
impl Freeze for NameConstraints
impl RefUnwindSafe for NameConstraints
impl Send for NameConstraints
impl Sync for NameConstraints
impl Unpin for NameConstraints
impl UnwindSafe for NameConstraints
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