pub enum Validation {
    Valid,
    Invalid(ErrorMessage),
}Expand description
The result type of validation operations when the execution of the validator function succeeds.
Variants§
Valid
Variant that indicates that the input value is valid according to the validator.
Invalid(ErrorMessage)
Variant that indicates that the input value is invalid according to the validator.
The member represents a custom error message that will be displayed to the user when present. When empty a standard error message, configured via the RenderConfig struct, will be shown instead.
Trait Implementations§
source§impl Clone for Validation
 
impl Clone for Validation
source§fn clone(&self) -> Validation
 
fn clone(&self) -> Validation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for Validation
 
impl Debug for Validation
source§impl PartialEq for Validation
 
impl PartialEq for Validation
source§fn eq(&self, other: &Validation) -> bool
 
fn eq(&self, other: &Validation) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for Validation
impl StructuralEq for Validation
impl StructuralPartialEq for Validation
Auto Trait Implementations§
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnwindSafe for Validation
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