[][src]Struct rcgen::NameConstraints

pub struct NameConstraints {
    pub permitted_subtrees: Vec<GeneralSubtree>,
    pub excluded_subtrees: Vec<GeneralSubtree>,
}

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

impl Clone for NameConstraints[src]

impl Debug for NameConstraints[src]

impl Eq for NameConstraints[src]

impl PartialEq<NameConstraints> for NameConstraints[src]

impl StructuralEq for NameConstraints[src]

impl StructuralPartialEq for NameConstraints[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.