Enum jsonrpc_server_utils::hosts::DomainsValidation [] [src]

pub enum DomainsValidation<T> {
    AllowOnly(Vec<T>),
    Disabled,
}

Specifies if domains should be validated.

Variants

Allow only domains on the list.

Disable domains validation completely.

Trait Implementations

impl<T: Clone> Clone for DomainsValidation<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for DomainsValidation<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for DomainsValidation<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq> Eq for DomainsValidation<T>
[src]

impl<T> Into<Option<Vec<T>>> for DomainsValidation<T>
[src]

[src]

Performs the conversion.

impl<T> From<Option<Vec<T>>> for DomainsValidation<T>
[src]

[src]

Performs the conversion.