use axum::{ extract::{FromRequest, TypedHeader, rejection::TypedHeaderRejection}, response::Response, headers::{self, UserAgent}, }; #[derive(FromRequest)] struct Extractor { uri: axum::http::Uri, user_agent: TypedHeader, content_type: TypedHeader, etag: Option>, host: Result, TypedHeaderRejection>, body: String, } fn assert_from_request() where Extractor: FromRequest<(), Rejection = Response>, { } fn main() {}