mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +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() {}
|