Struct x509_cert::ext::pkix::constraints::name::NameConstraints
source · pub struct NameConstraints {
pub permitted_subtrees: Option<GeneralSubtrees>,
pub excluded_subtrees: Option<GeneralSubtrees>,
}
Expand description
NameConstraints extension as defined in RFC 5280 Section 4.2.1.10.
NameConstraints ::= SEQUENCE {
permittedSubtrees [0] GeneralSubtrees OPTIONAL,
excludedSubtrees [1] GeneralSubtrees OPTIONAL
}
Fields§
§permitted_subtrees: Option<GeneralSubtrees>
§excluded_subtrees: Option<GeneralSubtrees>
Trait Implementations§
source§impl AsExtension for NameConstraints
impl AsExtension for NameConstraints
source§impl AssociatedOid for NameConstraints
impl AssociatedOid for NameConstraints
source§const OID: ObjectIdentifier = ID_CE_NAME_CONSTRAINTS
const OID: ObjectIdentifier = ID_CE_NAME_CONSTRAINTS
The OID associated with this type.
source§impl Clone for NameConstraints
impl Clone for NameConstraints
source§fn clone(&self) -> NameConstraints
fn clone(&self) -> NameConstraints
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NameConstraints
impl Debug for NameConstraints
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for NameConstraints
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for NameConstraints
source§impl<'__der_lifetime> EncodeValue for NameConstraints
impl<'__der_lifetime> EncodeValue for NameConstraints
source§impl PartialEq for NameConstraints
impl PartialEq for NameConstraints
source§fn eq(&self, other: &NameConstraints) -> bool
fn eq(&self, other: &NameConstraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NameConstraints
impl<'__der_lifetime> Sequence<'__der_lifetime> for NameConstraints
impl StructuralEq for NameConstraints
impl StructuralPartialEq for NameConstraints
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
source§impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
impl<T> DynAssociatedOid for Twhere
T: AssociatedOid,
source§fn oid(&self) -> ObjectIdentifier
fn oid(&self) -> ObjectIdentifier
Get the OID associated with this value.
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere
T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.