Trait axum_request_validator::ErrorHandler
source · pub trait ErrorHandler<V> {
type Response: IntoResponse;
// Required method
fn handle_error<'life0, 'async_trait>(
&'life0 self,
error: Error<V>
) -> Pin<Box<dyn Future<Output = Self::Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
The error handler for the validation errors.