mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 07:20:12 +01:00
18 lines
313 B
Rust
18 lines
313 B
Rust
use axum::extract::State;
|
|
use axum_macros::FromRequest;
|
|
|
|
#[derive(FromRequest)]
|
|
struct Extractor {
|
|
inner_state: State<AppState>,
|
|
}
|
|
|
|
#[derive(Clone)]
|
|
struct AppState {}
|
|
|
|
fn assert_from_request()
|
|
where
|
|
Extractor: axum::extract::FromRequest<AppState, Rejection = axum::response::Response>,
|
|
{
|
|
}
|
|
|
|
fn main() {}
|