pub trait Validate {
// Required method
fn validate(&self) -> Result<(), ValidationErrors>;
}Expand description
Deriving Validate allows you to specify schema and field validations on structs. See the repository for a full list of possible validations.