Trait ValidatorErrorHandlerExt

Source
pub trait ValidatorErrorHandlerExt {
    // Required method
    fn validator_error_handler(self, handler: ValidatorErrHandler) -> Self;
}
Expand description

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

Required Methods§

Source

fn validator_error_handler(self, handler: ValidatorErrHandler) -> Self

Add a custom error handler for validator 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 ValidatorErrorHandlerExt for &mut ServiceConfig

Source§

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

Implementors§