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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NameConstraints) -> bool
fn ne(&self, other: &NameConstraints) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more