pub trait Validate {
type Output;
type Error;
// Required method
fn validate(self) -> Result<Self::Output, Self::Error>;
}pub trait Validate {
type Output;
type Error;
// Required method
fn validate(self) -> Result<Self::Output, Self::Error>;
}