axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
2024-11-26 18:04:01 +00:00

10 lines
215 B
Rust

use axum::{extract::Request, extract::State};
use axum_macros::debug_handler;
#[debug_handler(state = AppState)]
async fn handler(_: State<AppState>, _: Request) {}
#[derive(Clone)]
struct AppState;
fn main() {}