2022-08-18 11:41:14 +02:00
|
|
|
use axum_macros::debug_handler;
|
|
|
|
|
use axum::{body::BoxBody, extract::State, http::Request};
|
|
|
|
|
|
|
|
|
|
#[debug_handler(state = AppState, body = BoxBody)]
|
|
|
|
|
async fn handler(_: State<AppState>, _: Request<BoxBody>) {}
|
|
|
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
|
struct AppState;
|
|
|
|
|
|
|
|
|
|
fn main() {}
|