Derive serde traits for the main request/response structs.
This commit is contained in:
parent
24370f3d4c
commit
44164a7299
@ -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
|
||||
});
|
||||
|
||||
|
@ -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
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user