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