pub trait Validate {
// Required method
fn validate(&self) -> Result<(), ValidationErrors>;
}Expand description
This is the original trait that was implemented by deriving Validate. It will still be
implemented for struct validations that don’t take custom arguments. The call is being
forwarded to the ValidateArgs<'v_a> trait.
Required Methods§
fn validate(&self) -> Result<(), ValidationErrors>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".