Trait deltae::Validate

source ·
pub trait Validate
where Self: Sized,
{ // Required method fn validate(self) -> Result<Self, ValueError>; }
Expand description

Trait to validate whether a type has appropriate values

Required Methods§

source

fn validate(self) -> Result<Self, ValueError>

Return Err() if the values are invalid

Object Safety§

This trait is not object safe.

Implementors§