Enum jsonrpc_server_utils::hosts::DomainsValidation [−][src]
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.
Tuple Fields of AllowOnly
0: Vec<T>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