mirror of
https://github.com/tokio-rs/axum.git
synced 2025-01-09 03:43:30 +01:00
11 lines
203 B
Rust
11 lines
203 B
Rust
|
use axum_macros::FromRequest;
|
||
|
use axum::extract::Extension;
|
||
|
|
||
|
#[derive(FromRequest)]
|
||
|
struct Extractor(#[from_request(via(Extension), via(Extension))] State);
|
||
|
|
||
|
#[derive(Clone)]
|
||
|
struct State;
|
||
|
|
||
|
fn main() {}
|