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