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
Email
Url
Custom(String)
MustMatch(String)
Contains(String)
Regex(String)
Range
Fields of Range
min: f64 | |
max: f64 |
Length
Fields of Length
min: Option<u64> | |
max: Option<u64> | |
equal: Option<u64> |
CreditCard(String)
Methods
impl Validator
[src]
Trait Implementations
impl Debug for Validator
[src]
impl Clone for Validator
[src]
fn clone(&self) -> Validator
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more