Trait ValidationErrorHandlerExt

Source
pub trait ValidationErrorHandlerExt {
    // Required method
    fn validation_error_handler(self, handler: ValidationErrHandler) -> Self;
}
Expand description

Extension trait to provide a convenience method for adding custom error handler

Required Methods§

Source

fn validation_error_handler(self, handler: ValidationErrHandler) -> Self

Add a custom error handler for garde validated requests

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.

Implementations on Foreign Types§

Source§

impl ValidationErrorHandlerExt for &mut ServiceConfig

Source§

impl<T> ValidationErrorHandlerExt for App<T>
where T: ServiceFactory<ServiceRequest, Config = (), Error = Error, InitError = ()>,

Implementors§