Derive serde traits for the main request/response structs.

This commit is contained in:
Jimmy Cuadra 2017-05-14 17:36:57 -07:00
parent 24370f3d4c
commit 44164a7299
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ impl ToTokens for Request {
fn to_tokens(&self, mut tokens: &mut Tokens) {
tokens.append(quote! {
/// Data for a request to this API endpoint.
#[derive(Debug)]
#[derive(Debug, Serialize)]
pub struct Request
});

View File

@ -105,7 +105,7 @@ impl ToTokens for Response {
fn to_tokens(&self, mut tokens: &mut Tokens) {
tokens.append(quote! {
/// Data in the response from this API endpoint.
#[derive(Debug)]
#[derive(Debug, Deserialize)]
pub struct Response
});