mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-29 15:49:16 +01:00
14 lines
236 B
Rust
14 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() {}
|