pub trait Validate2: Sized {
    type Error: Into<ValidationError>;

    fn validate_with_config(
        &self,
        config: &ValidationConfig
    ) -> Result<(), Self::Error>; fn validate(&self) -> Result<(), Self::Error> { ... } }
Expand description

Validate an object

Required Associated Types

The error that validation of the implementing type can result in

Required Methods

Validate the object

Provided Methods

Validate the object using default configuration

Implementors