Files
axum/axum-macros/tests/from_request/pass/container_parts.rs
T

22 lines
352 B
Rust

use axum::extract::{
rejection::ExtensionRejection,
Extension,
FromRequestParts,
};
#[derive(Clone, FromRequestParts)]
#[from_request(via(Extension))]
struct Extractor {
one: i32,
two: String,
three: bool,
}
fn assert_from_request()
where
Extractor: FromRequestParts<(), Rejection = ExtensionRejection>,
{
}
fn main() {}