use axum::{ extract::{rejection::TypedHeaderRejection, FromRequestParts, TypedHeader}, headers::{self, UserAgent}, response::Response, }; #[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() {}