pub trait CreateValidationError {
    // Provided methods
    fn validation_error(field: &str, message: &str) -> ValidationError { ... }
    fn validation_error_with_code(
        field: &str,
        message: &str,
        code: &str,
    ) -> ValidationError { ... }
}Expand description
Helper trait for creating validation errors
Provided Methods§
fn validation_error(field: &str, message: &str) -> ValidationError
fn validation_error_with_code( field: &str, message: &str, code: &str, ) -> ValidationError
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.