Crates.io | into_response_derive |
lib.rs | into_response_derive |
version | 0.2.0 |
source | src |
created_at | 2022-02-22 11:20:18.388436 |
updated_at | 2024-03-31 09:39:54.933084 |
description | a simple into response derive for axum |
homepage | |
repository | https://github.com/LyunKi/into-response-derive |
max_upload_size | |
id | 537211 |
size | 3,218 |
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>,
}