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