pub struct EmailValidator { /* private fields */ }Expand description
Email validator
Implementations§
Trait Implementations§
Source§impl Validator for EmailValidator
impl Validator for EmailValidator
fn validate(&self, value: &str, field: &str) -> ValidationResult
fn is_required(&self) -> bool
Auto Trait Implementations§
impl Freeze for EmailValidator
impl RefUnwindSafe for EmailValidator
impl Send for EmailValidator
impl Sync for EmailValidator
impl Unpin for EmailValidator
impl UnsafeUnpin for EmailValidator
impl UnwindSafe for EmailValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more