From 76a1a042aa11448327c1cccc6473c9fe9b73aaf8 Mon Sep 17 00:00:00 2001 From: thomas-jeepe <penguinSoccer@outlook.com> Date: Sat, 28 Oct 2017 17:07:16 -0400 Subject: [PATCH] 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` --- juniper/src/http.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper/src/http.rs b/juniper/src/http.rs index 0c90f8ee..79163d4b 100644 --- a/juniper/src/http.rs +++ b/juniper/src/http.rs @@ -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")]