Procedural macros for generating default actix_web::Responder
implementation for a custom serialization.
Currently supported formats are:
- JSON
- Bincode
- XML
#[derive(Serialize, PartialEq, JsonResponder)]
struct JsonResponse {
name: String,
}
#[derive(Debug, Serialize, PartialEq, XMLResponder)]
struct XMLResponse {
name: String,
}
#[derive(Debug, Serialize, PartialEq, BincodeResponder)]
struct BincodeResponse {
name: String,
}