Skip to main content

Validatable

Trait Validatable 

Source
pub trait Validatable {
    // Required method
    fn validate(&self, validator: &dyn Validator) -> ConstraintViolationList;
}
Expand description

Object that can validate itself through a Validator.

Required Methods§

Source

fn validate(&self, validator: &dyn Validator) -> ConstraintViolationList

Collects violations for this value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§