Skip to main content

Validator

Trait Validator 

Source
pub trait Validator: Send + Sync {
    // Provided method
    fn validate(&self) -> Result { ... }
}
Expand description

The trait implemented by types that require validation logic.

Provided Methods§

Source

fn validate(&self) -> Result

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§