use axum::body::Body; use axum::http::Request; use serde::Serialize; pub trait BuildJson { fn json(self, body: T) -> Result, axum::http::Error>; }