@@ -4,7 +4,7 @@ use serde;
4
4
5
5
type Boolean = bool ;
6
6
7
- #[ derive( Debug ) ]
7
+ #[ derive( Clone , Debug ) ]
8
8
pub enum __DirectiveLocation {
9
9
QUERY ,
10
10
MUTATION ,
@@ -80,7 +80,7 @@ impl<'de> ::serde::Deserialize<'de> for __DirectiveLocation {
80
80
}
81
81
}
82
82
83
- #[ derive( Debug ) ]
83
+ #[ derive( Clone , Debug ) ]
84
84
pub enum __TypeKind {
85
85
SCALAR ,
86
86
OBJECT ,
@@ -126,7 +126,7 @@ impl<'de> ::serde::Deserialize<'de> for __TypeKind {
126
126
}
127
127
}
128
128
129
- #[ derive( Debug , Deserialize ) ]
129
+ #[ derive( Clone , Debug , Deserialize ) ]
130
130
#[ serde( rename_all = "camelCase" ) ]
131
131
pub struct FullType {
132
132
pub kind : Option < __TypeKind > ,
@@ -139,40 +139,40 @@ pub struct FullType {
139
139
pub possible_types : Option < Vec < Option < FullTypePossibleTypes > > > ,
140
140
}
141
141
142
- #[ derive( Debug , Deserialize ) ]
142
+ #[ derive( Clone , Debug , Deserialize ) ]
143
143
#[ serde( rename_all = "camelCase" ) ]
144
144
pub struct FullTypeFieldsArgs {
145
145
#[ serde( flatten) ]
146
146
input_value : InputValue ,
147
147
}
148
148
149
- #[ derive( Debug , Deserialize ) ]
149
+ #[ derive( Clone , Debug , Deserialize ) ]
150
150
#[ serde( rename_all = "camelCase" ) ]
151
151
pub struct FullTypeFieldsType {
152
152
#[ serde( flatten) ]
153
- type_ref : TypeRef ,
153
+ pub type_ref : TypeRef ,
154
154
}
155
155
156
- #[ derive( Debug , Deserialize ) ]
156
+ #[ derive( Clone , Debug , Deserialize ) ]
157
157
#[ serde( rename_all = "camelCase" ) ]
158
158
pub struct FullTypeFields {
159
- name : Option < String > ,
160
- description : Option < String > ,
161
- args : Option < Vec < Option < FullTypeFieldsArgs > > > ,
159
+ pub name : Option < String > ,
160
+ pub description : Option < String > ,
161
+ pub args : Option < Vec < Option < FullTypeFieldsArgs > > > ,
162
162
#[ serde( rename = "type" ) ]
163
- type_ : Option < FullTypeFieldsType > ,
164
- is_deprecated : Option < Boolean > ,
165
- deprecation_reason : Option < String > ,
163
+ pub type_ : Option < FullTypeFieldsType > ,
164
+ pub is_deprecated : Option < Boolean > ,
165
+ pub deprecation_reason : Option < String > ,
166
166
}
167
167
168
- #[ derive( Debug , Deserialize ) ]
168
+ #[ derive( Clone , Debug , Deserialize ) ]
169
169
#[ serde( rename_all = "camelCase" ) ]
170
170
pub struct FullTypeInputFields {
171
171
#[ serde( flatten) ]
172
172
input_value : InputValue ,
173
173
}
174
174
175
- #[ derive( Debug , Deserialize ) ]
175
+ #[ derive( Clone , Debug , Deserialize ) ]
176
176
#[ serde( rename_all = "camelCase" ) ]
177
177
pub struct FullTypeInterfaces {
178
178
#[ serde( flatten) ]
@@ -188,14 +188,14 @@ pub struct FullTypeEnumValues {
188
188
pub deprecation_reason : Option < String > ,
189
189
}
190
190
191
- #[ derive( Debug , Deserialize ) ]
191
+ #[ derive( Clone , Debug , Deserialize ) ]
192
192
#[ serde( rename_all = "camelCase" ) ]
193
193
pub struct FullTypePossibleTypes {
194
194
#[ serde( flatten) ]
195
- type_ref : TypeRef ,
195
+ pub type_ref : TypeRef ,
196
196
}
197
197
198
- #[ derive( Debug , Deserialize ) ]
198
+ #[ derive( Clone , Debug , Deserialize ) ]
199
199
#[ serde( rename_all = "camelCase" ) ]
200
200
pub struct InputValue {
201
201
name : Option < String > ,
@@ -205,109 +205,109 @@ pub struct InputValue {
205
205
default_value : Option < String > ,
206
206
}
207
207
208
- #[ derive( Debug , Deserialize ) ]
208
+ #[ derive( Clone , Debug , Deserialize ) ]
209
209
#[ serde( rename_all = "camelCase" ) ]
210
210
pub struct InputValueType {
211
211
#[ serde( flatten) ]
212
- type_ref : TypeRef ,
212
+ pub type_ref : TypeRef ,
213
213
}
214
214
215
- #[ derive( Debug , Deserialize ) ]
215
+ #[ derive( Clone , Debug , Deserialize ) ]
216
216
#[ serde( rename_all = "camelCase" ) ]
217
217
pub struct TypeRef {
218
- kind : Option < __TypeKind > ,
219
- name : Option < String > ,
220
- of_type : Option < TypeRefOfType > ,
218
+ pub kind : Option < __TypeKind > ,
219
+ pub name : Option < String > ,
220
+ pub of_type : Option < Box < TypeRef > > ,
221
221
}
222
222
223
- #[ derive( Debug , Deserialize ) ]
223
+ #[ derive( Clone , Debug , Deserialize ) ]
224
224
#[ serde( rename_all = "camelCase" ) ]
225
225
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfTypeOfType {
226
226
kind : Option < __TypeKind > ,
227
227
name : Option < String > ,
228
228
}
229
229
230
- #[ derive( Debug , Deserialize ) ]
230
+ #[ derive( Clone , Debug , Deserialize ) ]
231
231
#[ serde( rename_all = "camelCase" ) ]
232
232
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfType {
233
233
kind : Option < __TypeKind > ,
234
234
name : Option < String > ,
235
235
of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
236
236
}
237
237
238
- #[ derive( Debug , Deserialize ) ]
238
+ #[ derive( Clone , Debug , Deserialize ) ]
239
239
#[ serde( rename_all = "camelCase" ) ]
240
240
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfType {
241
241
kind : Option < __TypeKind > ,
242
242
name : Option < String > ,
243
243
of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
244
244
}
245
245
246
- #[ derive( Debug , Deserialize ) ]
246
+ #[ derive( Clone , Debug , Deserialize ) ]
247
247
#[ serde( rename_all = "camelCase" ) ]
248
248
pub struct TypeRefOfTypeOfTypeOfTypeOfType {
249
249
kind : Option < __TypeKind > ,
250
250
name : Option < String > ,
251
251
of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfType > ,
252
252
}
253
253
254
- #[ derive( Debug , Deserialize ) ]
254
+ #[ derive( Clone , Debug , Deserialize ) ]
255
255
#[ serde( rename_all = "camelCase" ) ]
256
256
pub struct TypeRefOfTypeOfTypeOfType {
257
257
kind : Option < __TypeKind > ,
258
258
name : Option < String > ,
259
259
of_type : Option < TypeRefOfTypeOfTypeOfTypeOfType > ,
260
260
}
261
261
262
- #[ derive( Debug , Deserialize ) ]
262
+ #[ derive( Clone , Debug , Deserialize ) ]
263
263
#[ serde( rename_all = "camelCase" ) ]
264
264
pub struct TypeRefOfTypeOfType {
265
265
kind : Option < __TypeKind > ,
266
266
name : Option < String > ,
267
267
of_type : Option < TypeRefOfTypeOfTypeOfType > ,
268
268
}
269
269
270
- #[ derive( Debug , Deserialize ) ]
270
+ #[ derive( Clone , Debug , Deserialize ) ]
271
271
#[ serde( rename_all = "camelCase" ) ]
272
272
pub struct TypeRefOfType {
273
273
kind : Option < __TypeKind > ,
274
274
name : Option < String > ,
275
275
of_type : Option < TypeRefOfTypeOfType > ,
276
276
}
277
277
278
- #[ derive( Debug , Deserialize ) ]
278
+ #[ derive( Clone , Debug , Deserialize ) ]
279
279
#[ serde( rename_all = "camelCase" ) ]
280
280
pub struct RustIntrospectionQuerySchemaQueryType {
281
281
name : Option < String > ,
282
282
}
283
283
284
- #[ derive( Debug , Deserialize ) ]
284
+ #[ derive( Clone , Debug , Deserialize ) ]
285
285
#[ serde( rename_all = "camelCase" ) ]
286
286
pub struct RustIntrospectionQuerySchemaMutationType {
287
287
name : Option < String > ,
288
288
}
289
289
290
- #[ derive( Debug , Deserialize ) ]
290
+ #[ derive( Clone , Debug , Deserialize ) ]
291
291
#[ serde( rename_all = "camelCase" ) ]
292
292
pub struct RustIntrospectionQuerySchemaSubscriptionType {
293
293
name : Option < String > ,
294
294
}
295
295
296
- #[ derive( Debug , Deserialize ) ]
296
+ #[ derive( Clone , Debug , Deserialize ) ]
297
297
#[ serde( rename_all = "camelCase" ) ]
298
298
pub struct RustIntrospectionQuerySchemaTypes {
299
299
#[ serde( flatten) ]
300
300
pub full_type : FullType ,
301
301
}
302
302
303
- #[ derive( Debug , Deserialize ) ]
303
+ #[ derive( Clone , Debug , Deserialize ) ]
304
304
#[ serde( rename_all = "camelCase" ) ]
305
305
pub struct RustIntrospectionQuerySchemaDirectivesArgs {
306
306
#[ serde( flatten) ]
307
307
input_value : InputValue ,
308
308
}
309
309
310
- #[ derive( Debug , Deserialize ) ]
310
+ #[ derive( Clone , Debug , Deserialize ) ]
311
311
#[ serde( rename_all = "camelCase" ) ]
312
312
pub struct RustIntrospectionQuerySchemaDirectives {
313
313
name : Option < String > ,
@@ -316,7 +316,7 @@ pub struct RustIntrospectionQuerySchemaDirectives {
316
316
args : Option < Vec < Option < RustIntrospectionQuerySchemaDirectivesArgs > > > ,
317
317
}
318
318
319
- #[ derive( Debug , Deserialize ) ]
319
+ #[ derive( Clone , Debug , Deserialize ) ]
320
320
#[ serde( rename_all = "camelCase" ) ]
321
321
pub struct RustIntrospectionQuerySchema {
322
322
pub query_type : Option < RustIntrospectionQuerySchemaQueryType > ,
@@ -326,13 +326,13 @@ pub struct RustIntrospectionQuerySchema {
326
326
directives : Option < Vec < Option < RustIntrospectionQuerySchemaDirectives > > > ,
327
327
}
328
328
329
- #[ derive( Debug , Deserialize ) ]
329
+ #[ derive( Clone , Debug , Deserialize ) ]
330
330
pub struct Schema {
331
331
#[ serde( rename = "__schema" ) ]
332
332
pub schema : Option < RustIntrospectionQuerySchema > ,
333
333
}
334
334
335
- #[ derive( Debug , Deserialize ) ]
335
+ #[ derive( Clone , Debug , Deserialize ) ]
336
336
pub struct IntrospectionResponse {
337
- pub data : Schema
337
+ pub data : Schema ,
338
338
}
0 commit comments