Enum validator::Validator [] [src]

pub enum Validator {
    Custom(String),
    MustMatch(String),
    Email,
    Url,
    Range {
        min: f64,
        max: f64,
    },
    Length {
        min: Option<u64>,
        max: Option<u64>,
        equal: Option<u64>,
    },
}

Variants

Fields of Range

Fields of Length

Trait Implementations

impl Debug for Validator
[src]

Formats the value using the given formatter.

impl Clone for Validator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more