Trait Validator
pub trait Validator<T> {
type Error;
// Required method
fn validate(&self, value: &T) -> Result<(), Self::Error>;
}
Required Associated Types§
type Error
type Error
The associated error type returned by this validator.
pub trait Validator<T> {
type Error;
// Required method
fn validate(&self, value: &T) -> Result<(), Self::Error>;
}
The associated error type returned by this validator.