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