mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +01:00
19 lines
328 B
Rust
19 lines
328 B
Rust
|
use axum_macros::FromRequestParts;
|
||
|
use axum::extract::State;
|
||
|
|
||
|
#[derive(FromRequestParts)]
|
||
|
struct Extractor {
|
||
|
inner_state: State<AppState>,
|
||
|
}
|
||
|
|
||
|
#[derive(Clone)]
|
||
|
struct AppState {}
|
||
|
|
||
|
fn assert_from_request()
|
||
|
where
|
||
|
Extractor: axum::extract::FromRequestParts<AppState, Rejection = axum::response::Response>,
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main() {}
|