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