Validate

Trait Validate 

Source
pub trait Validate {
    // Required method
    fn validate(&self) -> Result<(), Vec<ValidationError>>;
}
Expand description

Trait for validatable types

Required Methods§

Source

fn validate(&self) -> Result<(), Vec<ValidationError>>

Validate the value and return errors if any

Implementors§