mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-17 04:09:03 +01:00
17 lines
276 B
Rust
17 lines
276 B
Rust
|
use axum::Extension;
|
||
|
use axum_macros::FromRequestParts;
|
||
|
|
||
|
#[derive(FromRequestParts)]
|
||
|
struct Extractor(#[from_request(via(Extension))] State);
|
||
|
|
||
|
#[derive(Clone)]
|
||
|
struct State;
|
||
|
|
||
|
fn assert_from_request()
|
||
|
where
|
||
|
Extractor: axum::extract::FromRequestParts<()>,
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main() {}
|