pub trait Validator {
type Error;
// Required method
fn validate(self) -> Result<Self, Self::Error>
where Self: Sized;
}Expand description
Validators are capable of determining if their internal state is satisfactory to fulfill
some use case defined by the implementor.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".