Trait validify::Validate

source ·
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.

Required Methods§

source

fn validate(&self) -> Result<(), ValidationErrors>

Apply the provided validations to self

Implementors§