mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-16 00:00:18 +02:00
Co-authored-by: Jonas Platte <[email protected]> Co-authored-by: Michael Scofield <[email protected]>
13 lines
209 B
Rust
13 lines
209 B
Rust
use axum_macros::FromRequest;
|
|
|
|
#[derive(FromRequest)]
|
|
struct Extractor();
|
|
|
|
fn assert_from_request()
|
|
where
|
|
Extractor: axum::extract::FromRequest<(), Rejection = std::convert::Infallible>,
|
|
{
|
|
}
|
|
|
|
fn main() {}
|