pub trait Validate: Sized {
    fn validate_with_config(
        self,
        config: &ValidationConfig
    ) -> Result<Validated<Self>, ValidationError>; fn validate(self) -> Result<Validated<Self>, ValidationError> { ... } }
Expand description

Validate an object

Required Methods

Validate the object

Provided Methods

Validate the object using default configuration

The following calls are equivalent:

object.validate();
object.validate_with_config(&ValidationConfig::default());

Implementors