mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-19 05:00:34 +01:00
11 lines
204 B
Rust
11 lines
204 B
Rust
|
use axum_macros::FromRequest;
|
||
|
use axum::extract::Extension;
|
||
|
|
||
|
#[derive(FromRequest, Clone)]
|
||
|
#[from_request(via(Extension), rejection_derive(!Error))]
|
||
|
struct Extractor {
|
||
|
config: String,
|
||
|
}
|
||
|
|
||
|
fn main() {}
|