pub struct NameConstraints {
pub critical: Option<bool>,
pub excluded_dns_names: Option<Vec<String>>,
pub excluded_email_addresses: Option<Vec<String>>,
pub excluded_ip_ranges: Option<Vec<String>>,
pub excluded_uris: Option<Vec<String>>,
pub permitted_dns_names: Option<Vec<String>>,
pub permitted_email_addresses: Option<Vec<String>>,
pub permitted_ip_ranges: Option<Vec<String>>,
pub permitted_uris: Option<Vec<String>>,
}Expand description
Describes the X.509 name constraints extension, per https://tools.ietf.org/html/rfc5280#section-4.2.1.10
This type is not used in any activity, and only used as part of another schema.
Fields§
§critical: Option<bool>Indicates whether or not the name constraints are marked critical.
excluded_dns_names: Option<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.
excluded_email_addresses: Option<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.
excluded_ip_ranges: Option<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.
excluded_uris: Option<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)
permitted_dns_names: Option<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.
permitted_email_addresses: Option<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.
permitted_ip_ranges: Option<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.
permitted_uris: Option<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)
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 more