use axum::extract::FromRef; #[derive(Clone, FromRef)] struct AppState { foo: T, } fn main() {}