pub trait Validate: Sealed {
    // Required method
    fn validate<R>(&self) -> Result<(), Error>
       where R: Rule + ?Sized,
             Self: Validation<R>;
}
Expand description

Validation trait’s shim allowing to specify its Rule as a method’s type parameter.

Required Methods§

source

fn validate<R>(&self) -> Result<(), Error>where R: Rule + ?Sized, Self: Validation<R>,

Checks whether the specified validation Rule is satisfied.

Errors

If validation fails.

Implementors§

source§

impl<T> Validate for Twhere T: ?Sized,