mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-26 00:56:27 +01:00
4e4c29175f
Co-authored-by: Jonas Platte <jplatte+git@posteo.de> Co-authored-by: Michael Scofield <mscofield0@tutanota.com>
19 lines
352 B
Rust
19 lines
352 B
Rust
use axum_macros::FromRequest;
|
|
use axum::extract::State;
|
|
|
|
#[derive(FromRequest)]
|
|
struct Extractor {
|
|
inner_state: State<AppState>,
|
|
also_inner_state: State<AppState>,
|
|
}
|
|
|
|
#[derive(Clone)]
|
|
struct AppState {}
|
|
|
|
fn assert_from_request()
|
|
where
|
|
Extractor: axum::extract::FromRequest<AppState, Rejection = axum::response::Response>,
|
|
{
|
|
}
|
|
|
|
fn main() {}
|