File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ impl Display for PathFragment {
181
181
/// extensions: None,
182
182
/// },
183
183
/// ]),
184
+ /// extensions: None,
184
185
/// };
185
186
///
186
187
/// assert_eq!(body, expected);
@@ -275,6 +276,7 @@ impl Display for Error {
275
276
/// dogs: vec![Dog { name: "Strelka".to_owned() }],
276
277
/// }),
277
278
/// errors: Some(vec![]),
279
+ /// extensions: None,
278
280
/// };
279
281
///
280
282
/// assert_eq!(body, expected);
@@ -288,6 +290,9 @@ pub struct Response<Data> {
288
290
pub data : Option < Data > ,
289
291
/// The top-level errors returned by the server.
290
292
pub errors : Option < Vec < Error > > ,
293
+ /// Additional extensions. Their exact format is defined by the server.
294
+ /// See [GraphQL Response Specification](https://github.com/graphql/graphql-spec/blob/main/spec/Section%207%20--%20Response.md#response-format)
295
+ pub extensions : Option < HashMap < String , serde_json:: Value > > ,
291
296
}
292
297
293
298
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments