pub trait Validate { // Required method fn validate(&self) -> Result<(), Vec<ValidationError>>; }
Trait for validatable types
Validate the value and return errors if any