Derive Clone for GraphQLRequest

This is just a useful thing for me because I need to clone the http request.

This shouldn't really influence anything else, every field already implements `Clone`
This commit is contained in:
thomas-jeepe 2017-10-28 17:07:16 -04:00 committed by theduke
parent 62d5e28a97
commit 76a1a042aa

View file

@ -14,7 +14,7 @@ use executor::ExecutionError;
///
/// For GET, you will need to parse the query string and exctract "query",
/// "operationName", and "variables" manually.
#[derive(Deserialize)]
#[derive(Deserialize, Clone)]
pub struct GraphQLRequest {
query: String,
#[serde(rename = "operationName")]