pub trait Validator<T> {
type Error;
// Required method
fn validate(&self, value: &T) -> Result<(), Self::Error>;
}
pub trait Validator<T> {
type Error;
// Required method
fn validate(&self, value: &T) -> Result<(), Self::Error>;
}