#[non_exhaustive]pub struct BasicConstraints {
pub is_ca: bool,
pub path_len_constraint: Option<u8>,
}Expand description
Basic constraints extension.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_ca: boolWhether this certificate’s subject may sign other certificates.
path_len_constraint: Option<u8>Maximum number of intermediate certificates that may follow.
None means unbounded (or no constraint set).
Implementations§
Source§impl BasicConstraints
impl BasicConstraints
Sourcepub const fn new(is_ca: bool, path_len_constraint: Option<u8>) -> Self
pub const fn new(is_ca: bool, path_len_constraint: Option<u8>) -> Self
Construct a BasicConstraints extension.
Provided because the struct is #[non_exhaustive]: callers in other
crates cannot use a struct literal, so this constructor is the stable
way to build one. Any future spec-driven field will gain a default
here without breaking existing callers.
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
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