Function axum_request_validator::simple_middleware
source · pub async fn simple_middleware<Validator>(
__arg0: State<Validator>,
req: Request<Body>,
next: Next<Body>
) -> Result<Response, <PlainDisplayErrorRenderer as ErrorHandler<Validator::Error>>::Response>where
Validator: Validator<Bytes> + Send,
<Validator as Validator<Bytes>>::Error: Display + Send + 'static,
Expand description
axum
middleware implementation.