pub enum ValidationError {
Missing(String),
Email,
Min(String),
}Available on crate feature
derive only.Expand description
The error returned by the validate method generated by the derive(Validate) macro.
Variants§
Missing(String)
The field specified by 0 failed validator::Required validation.
Some field failed validator::Email validation.
Min(String)
The field specified by 0 failed validator::Min validation.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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