mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
Co-authored-by: Jonas Platte <[email protected]> Co-authored-by: Michael Scofield <[email protected]>
17 lines
261 B
Rust
17 lines
261 B
Rust
use axum::Extension;
|
|
use axum_macros::FromRequest;
|
|
|
|
#[derive(FromRequest)]
|
|
struct Extractor(#[from_request(via(Extension))] State);
|
|
|
|
#[derive(Clone)]
|
|
struct State;
|
|
|
|
fn assert_from_request()
|
|
where
|
|
Extractor: axum::extract::FromRequest<()>,
|
|
{
|
|
}
|
|
|
|
fn main() {}
|