From 83fcce49cc216a2d1062b7e51bc6855df4fe6db0 Mon Sep 17 00:00:00 2001 From: Graeme Coupar Date: Mon, 8 Jan 2024 20:55:38 +0000 Subject: [PATCH] Derive `Clone` on `GraphQlResponse` --- CHANGELOG.md | 4 ++++ cynic/src/result.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19800041..24453e29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html ## Unreleased - xxxx-xx-xx +### Changes + +- `GraphQlResponse` is now `Clone` provided its contents are also + ## v3.3.1 - 2024-01-05 ### Bug Fixes diff --git a/cynic/src/result.rs b/cynic/src/result.rs index 0d99f70d..ff74a962 100644 --- a/cynic/src/result.rs +++ b/cynic/src/result.rs @@ -1,5 +1,5 @@ /// The response to a GraphQl operation -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct GraphQlResponse { /// The operation data (if the operation was successful) pub data: Option,