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>,
    },
    CreditCard(String),
}

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]

[src]

Trait Implementations

impl Debug for Validator
[src]

[src]

Formats the value using the given formatter.

impl Clone for Validator
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Validator
[src]

[src]

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

[src]

This method tests for !=.