pub struct BasicConstraints {
pub is_ca: bool,
pub path_len: Option<u32>,
}Expand description
The X.509 basicConstraints extension (RFC 5280 §4.2.1.9): the CA flag
plus an optional path-length constraint.
path_len is parsed but NOT enforced by verify_chain — v1.8 uses
a fixed MAX_CHAIN_DEPTH cap instead (scope D-4).
Fields§
§is_ca: boolThe cA boolean (DEFAULT FALSE).
path_len: Option<u32>The pathLenConstraint, if present. Parsed, not enforced.
Trait Implementations§
Source§impl Clone for BasicConstraints
impl Clone for BasicConstraints
Source§fn clone(&self) -> BasicConstraints
fn clone(&self) -> BasicConstraints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BasicConstraints
Source§impl Debug for BasicConstraints
impl Debug for BasicConstraints
impl Eq for BasicConstraints
Source§impl PartialEq for BasicConstraints
impl PartialEq for BasicConstraints
Source§fn eq(&self, other: &BasicConstraints) -> bool
fn eq(&self, other: &BasicConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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