1 unstable release
0.1.0 | Jul 24, 2022 |
---|
#1463 in Procedural macros
14,942 downloads per month
6KB
63 lines
Actix Default Responder
Procedural macros for generating default actix_web::Responder
implementation for a custom serialization.
Currently supported formats are:
1. JSON
2. Bincode
3. XML
Json Response
#[derive(Serialize, PartialEq, JsonResponder)]
struct JsonResponse {
name: String,
}
XML Response
#[derive(Debug, Serialize, PartialEq, XMLResponder)]
struct XMLResponse {
name: String,
}
Bincode Response
#[derive(Debug, Serialize, PartialEq, BincodeResponder)]
struct BincodeResponse {
name: String,
}
Dependencies
~1.5MB
~37K SLoC