You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
12
12
- The CLI can now optionally format the generated code with rustfmt (enable the `rustfmt` feature).
13
13
14
+
### Changed
15
+
16
+
- (BREAKING) GraphQLQuery does not take a lifetime parameter anymore. This makes it easier to work with futures in async client, since futures expect everything they capture to have the 'static lifetime.
Copy file name to clipboardExpand all lines: graphql_client/src/lib.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,11 +69,11 @@ use itertools::Itertools;
69
69
/// Ok(())
70
70
/// }
71
71
/// ```
72
-
pubtraitGraphQLQuery<'de>{
72
+
pubtraitGraphQLQuery{
73
73
/// The shape of the variables expected by the query. This should be a generated struct most of the time.
74
74
typeVariables: serde::Serialize;
75
75
/// The top-level shape of the response data (the `data` field in the GraphQL response). In practice this should be generated, since it is hard to write by hand without error.
76
-
typeResponseData: serde::Deserialize<'de>;
76
+
typeResponseData:for<'de>serde::Deserialize<'de>;
77
77
78
78
/// Produce a GraphQL query struct that can be JSON serialized and sent to a GraphQL API.
0 commit comments