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
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> |
Methods
impl Validator
[src]
impl Validator
Trait Implementations
impl Debug for Validator
[src]
impl Debug for Validator
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Validator
[src]
impl Clone for Validator
fn clone(&self) -> Validator
[src]
fn clone(&self) -> Validator
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Validator
[src]
impl PartialEq for Validator