#axum #macro #derive #response #error-response #proc-macro

macro into_response_derive

a simple into response derive for axum

2 unstable releases

0.2.0 Mar 31, 2024
0.1.0 Feb 22, 2022

#22 in #error-response

Download history 7/week @ 2024-02-19 9/week @ 2024-02-26 134/week @ 2024-03-25 91/week @ 2024-04-01 2/week @ 2024-04-08

227 downloads per month

MIT license

4KB

a simple proc macro for Axum IntoResponse trait

#[derive(Serialize, Deserialize, IntoResponse, Debug)]
pub struct ErrorResponse {
    pub code: String,
    pub msg: String,
    pub errors: Vec<ErrorResponse>,
}

Dependencies

~1.5MB
~33K SLoC