Trait deltae::Validate [−][src]
pub trait Validate where
Self: Sized, {
fn validate(self) -> Result<Self, ValueError>;
}
Expand description
Trait to validate whether a type has appropriate values
Required methods
fn validate(self) -> Result<Self, ValueError>
fn validate(self) -> Result<Self, ValueError>
Return Err()
if the values are invalid