pub trait Validate {
// Required method
fn validate(&self) -> Result<(), ValidationErrors>;
}Expand description
Deriving Validate will allow you to specify struct validations, but does not create an associated payload struct. Validate can be derived on structs containing references, while Validify cannot due to modifiers.