Files
axum/axum-macros/tests/debug_handler/pass/state_and_body.rs
T

11 lines
215 B
Rust
Raw Normal View History

use axum_macros::debug_handler;
2023-03-20 21:02:40 +01:00
use axum::{extract::State, extract::Request};
2023-03-12 16:37:32 +01:00
#[debug_handler(state = AppState)]
2023-03-20 21:02:40 +01:00
async fn handler(_: State<AppState>, _: Request) {}
#[derive(Clone)]
struct AppState;
fn main() {}