Struct x509_cert::ext::pkix::constraints::BasicConstraints
source · pub struct BasicConstraints {
pub ca: bool,
pub path_len_constraint: Option<u8>,
}
Expand description
BasicConstraints as defined in RFC 5280 Section 4.2.1.9.
BasicConstraints ::= SEQUENCE {
cA BOOLEAN DEFAULT FALSE,
pathLenConstraint INTEGER (0..MAX) OPTIONAL
}
Fields§
§ca: bool
§path_len_constraint: Option<u8>
Trait Implementations§
source§impl AsExtension for BasicConstraints
impl AsExtension for BasicConstraints
source§impl AssociatedOid for BasicConstraints
impl AssociatedOid for BasicConstraints
source§const OID: ObjectIdentifier = ID_CE_BASIC_CONSTRAINTS
const OID: ObjectIdentifier = ID_CE_BASIC_CONSTRAINTS
The OID associated with this type.
source§impl Clone for BasicConstraints
impl Clone for BasicConstraints
source§fn clone(&self) -> BasicConstraints
fn clone(&self) -> BasicConstraints
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 BasicConstraints
impl Debug for BasicConstraints
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for BasicConstraints
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for BasicConstraints
source§impl<'__der_lifetime> EncodeValue for BasicConstraints
impl<'__der_lifetime> EncodeValue for BasicConstraints
source§impl PartialEq for BasicConstraints
impl PartialEq for BasicConstraints
source§fn eq(&self, other: &BasicConstraints) -> bool
fn eq(&self, other: &BasicConstraints) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BasicConstraints
impl<'__der_lifetime> Sequence<'__der_lifetime> for BasicConstraints
impl StructuralEq for BasicConstraints
impl StructuralPartialEq for BasicConstraints
Auto Trait Implementations§
impl RefUnwindSafe for BasicConstraints
impl Send for BasicConstraints
impl Sync for BasicConstraints
impl Unpin for BasicConstraints
impl UnwindSafe for BasicConstraints
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.