Struct x509_parser::extensions::BasicConstraints
source · pub struct BasicConstraints {
pub ca: bool,
pub path_len_constraint: Option<u32>,
}
Expand description
Identifies whether the subject of the certificate is a CA, and the max validation depth.
Fields§
§ca: bool
§path_len_constraint: Option<u32>
Trait Implementations§
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<'a> FromDer<'a, X509Error> for BasicConstraints
impl<'a> FromDer<'a, X509Error> for BasicConstraints
source§fn from_der(i: &'a [u8]) -> X509Result<'a, Self>
fn from_der(i: &'a [u8]) -> X509Result<'a, Self>
Attempt to parse input bytes into a DER object (enforcing constraints)
source§impl PartialEq for BasicConstraints
impl PartialEq for BasicConstraints
impl Eq for BasicConstraints
impl StructuralPartialEq for BasicConstraints
Auto Trait Implementations§
impl Freeze for BasicConstraints
impl RefUnwindSafe for BasicConstraints
impl Send for BasicConstraints
impl Sync for BasicConstraints
impl Unpin for BasicConstraints
impl UnwindSafe for BasicConstraints
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)