[][src]Enum validators_options::ValidatorOption

pub enum ValidatorOption {
    Must,
    Allow,
    NotAllow,
}

Options for validators.

Variants

Must
Allow
NotAllow

Implementations

impl ValidatorOption[src]

pub unsafe fn from_ordinal_unsafe(number: i8) -> ValidatorOption[src]

pub fn from_ordinal(number: i8) -> Option<ValidatorOption>[src]

pub fn ordinal(&self) -> i8[src]

pub const fn variants() -> [ValidatorOption; 3][src]

pub const fn variant_count() -> usize[src]

impl ValidatorOption[src]

pub fn allow(&self) -> bool[src]

pub fn not_allow(&self) -> bool[src]

pub fn must(&self) -> bool[src]

Trait Implementations

impl Clone for ValidatorOption[src]

impl Copy for ValidatorOption[src]

impl Debug for ValidatorOption[src]

impl Default for ValidatorOption[src]

impl Eq for ValidatorOption[src]

impl PartialEq<ValidatorOption> for ValidatorOption[src]

impl StructuralEq for ValidatorOption[src]

impl StructuralPartialEq for ValidatorOption[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, 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.