pub enum DomainsValidation<T> {
AllowOnly(Vec<T>),
Disabled,
}
Expand description
Specifies if domains should be validated.
Variants
AllowOnly(Vec<T>)
Allow only domains on the list.
Disabled
Disable domains validation completely.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for DomainsValidation<T> where
T: RefUnwindSafe,
impl<T> Send for DomainsValidation<T> where
T: Send,
impl<T> Sync for DomainsValidation<T> where
T: Sync,
impl<T> Unpin for DomainsValidation<T> where
T: Unpin,
impl<T> UnwindSafe for DomainsValidation<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more