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