Files
axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
T
2023-04-21 17:45:31 +02:00

11 lines
215 B
Rust

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