pub enum DomainsValidation<T> {
AllowOnly(Vec<T, Global>),
Disabled,
}
Expand description
Specifies if domains should be validated.
Variants§
AllowOnly(Vec<T, Global>)
Allow only domains on the list.
Disabled
Disable domains validation completely.
Trait Implementations§
source§impl<T> Clone for DomainsValidation<T>where
T: Clone,
impl<T> Clone for DomainsValidation<T>where T: Clone,
source§fn clone(&self) -> DomainsValidation<T>
fn clone(&self) -> DomainsValidation<T>
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<T> Debug for DomainsValidation<T>where
T: Debug,
impl<T> Debug for DomainsValidation<T>where T: Debug,
source§impl<T> PartialEq<DomainsValidation<T>> for DomainsValidation<T>where
T: PartialEq<T>,
impl<T> PartialEq<DomainsValidation<T>> for DomainsValidation<T>where T: PartialEq<T>,
source§fn eq(&self, other: &DomainsValidation<T>) -> bool
fn eq(&self, other: &DomainsValidation<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T> Eq for DomainsValidation<T>where T: Eq,
impl<T> StructuralEq for DomainsValidation<T>
impl<T> StructuralPartialEq for DomainsValidation<T>
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§
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