Trait GardeErrorHandlerExt

Source
pub trait GardeErrorHandlerExt {
    // Required method
    fn garde_error_handler(self, handler: GardeErrHandler) -> Self;
}
Expand description

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

Required Methods§

Source

fn garde_error_handler(self, handler: GardeErrHandler) -> 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 GardeErrorHandlerExt for &mut ServiceConfig

Source§

fn garde_error_handler(self, handler: GardeErrHandler) -> Self

Source§

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

Source§

fn garde_error_handler(self, handler: GardeErrHandler) -> Self

Implementors§