pub trait Validatewhere
Self: Sized,{
// Required method
fn validate(self) -> Result<Self, ValueError>;
}
Expand description
Trait to validate whether a type has appropriate values
Required Methods§
sourcefn validate(self) -> Result<Self, ValueError>
fn validate(self) -> Result<Self, ValueError>
Return Err()
if the values are invalid
Object Safety§
This trait is not object safe.