#axum #macro #response #derive

macro immortal_axum_macro

a simple into response derive for axum

3 releases (breaking)

0.3.0 Jun 15, 2024
0.2.0 Jun 15, 2024
0.1.0 Apr 11, 2024

#243 in #response

Download history 7/week @ 2024-09-18 6/week @ 2024-09-25

111 downloads per month
Used in immortal_axum_utils

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
~37K SLoC