Struct rcgen::NameConstraints
source · pub struct NameConstraints {
pub permitted_subtrees: Vec<GeneralSubtree>,
pub excluded_subtrees: Vec<GeneralSubtree>,
}
Expand description
The NameConstraints extension (only relevant for CA certificates)
Fields§
§permitted_subtrees: Vec<GeneralSubtree>
If non-empty, a whitelist of subtrees that the domain has to match.
excluded_subtrees: Vec<GeneralSubtree>
A list of excluded subtrees.
Any name matching an excluded subtree is invalid even if it also matches a permitted subtree.
Trait Implementations§
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 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 StructuralPartialEq for NameConstraints
Auto Trait Implementations§
impl Freeze for NameConstraints
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)