mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-23 07:39:25 +01:00
15 lines
236 B
Rust
15 lines
236 B
Rust
|
use axum::{extract::FromRequestParts, response::Response};
|
||
|
|
||
|
#[derive(FromRequestParts)]
|
||
|
struct Extractor {
|
||
|
body: String,
|
||
|
}
|
||
|
|
||
|
fn assert_from_request()
|
||
|
where
|
||
|
Extractor: FromRequestParts<(), Rejection = Response>,
|
||
|
{
|
||
|
}
|
||
|
|
||
|
fn main() {}
|