Trait validations::Validate
[−]
[src]
pub trait Validate<T> where
T: Debug + Any, { fn validate(&self) -> Result<(), Errors<T>>; }
A validatable type.
Required Methods
fn validate(&self) -> Result<(), Errors<T>>
Validates the value.
If invalid, returns details about why the value failed validation.