Trait Validate
semval
pub trait Validate<T> where T: Validation, { fn validate(&self) -> Result<T>; }
A trait for validating types
Validation is expected to be an expensive operation that should only be invoked when crossing boundaries between independent components.
fn validate(&self) -> Result<T>
Perform the validation