Trait validify::Validate

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

Required Methods§

Implementations on Foreign Types§

source§

impl<T: Validate> Validate for &T

Implementors§