Skip to main content

Validatable

Trait Validatable 

Source
pub trait Validatable {
    // Provided method
    fn validate(&self) -> Result<(), ValidationError> { ... }
}
Expand description

Trait for data types which need validation after being loaded from external sources

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§