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
sourceimpl Clone for NameConstraints
impl Clone for NameConstraints
sourcefn clone(&self) -> NameConstraints
fn clone(&self) -> NameConstraints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NameConstraints
impl Debug for NameConstraints
sourceimpl PartialEq<NameConstraints> for NameConstraints
impl PartialEq<NameConstraints> for NameConstraints
sourcefn eq(&self, other: &NameConstraints) -> bool
fn eq(&self, other: &NameConstraints) -> bool
impl Eq for NameConstraints
impl StructuralEq for NameConstraints
impl StructuralPartialEq for NameConstraints
Auto Trait Implementations
impl RefUnwindSafe for NameConstraints
impl Send for NameConstraints
impl Sync for NameConstraints
impl Unpin for NameConstraints
impl UnwindSafe for NameConstraints
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more