pub trait Validator<T> { // Required method fn validate(&self, instance: &T) -> ValidationResult; }
Trait for defining validators