pub async fn validate<Validator>( validator: Validator, req: Request<Body>, ) -> Result<Request<Body>, Error<Validator::Error>>where Validator: Validator<Data>,
Validate the axum request.
axum