Enum validator::Validator[][src]

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

Contains all the validators that can be used

In this crate as it's not allowed to export more than the proc macro in a proc macro crate

Variants

Fields of Range

Fields of Length

Methods

impl Validator
[src]

Trait Implementations

impl Debug for Validator
[src]

Formats the value using the given formatter. Read more

impl Clone for Validator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Validator
[src]

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 Send for Validator

impl Sync for Validator