pub trait Validator<Data> {
type Error;
// Required methods
fn validate(data: &Data) -> Result<(), Self::Error>;
fn constraint_type() -> ConstraintType;
}
Required Associated Types§
Required Methods§
fn validate(data: &Data) -> Result<(), Self::Error>
fn constraint_type() -> ConstraintType
Object Safety§
This trait is not object safe.