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§
fn validate(&self) -> Result<(), ValidationError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".