mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-19 05:00:34 +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() {}
|