Skip to main content

Validate

Trait Validate 

Source
pub trait Validate<T: ?Sized>: DynClone {
    // Required method
    fn validate(&self, input: &T) -> Result<Validation, CustomUserError>;
}

Required Methods§

Trait Implementations§

Source§

impl<T: ?Sized> Clone for Box<dyn Validate<T>>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<T, F> Validate<T> for F