1
+ #![ allow( non_camel_case_types) ]
2
+
1
3
use serde;
2
4
3
5
struct IntrospectionQuery ;
@@ -139,156 +141,179 @@ pub struct FullType {
139
141
inputFields : Option < Vec < Option < FullTypeInputFields > > > ,
140
142
interfaces : Option < Vec < Option < FullTypeInterfaces > > > ,
141
143
enumValues : Option < Vec < Option < FullTypeEnumValues > > > ,
142
- possibleTypes : Option < Vec < Option < FullTypePossibleTypes > > > ,
144
+ possible_types : Option < Vec < Option < FullTypePossibleTypes > > > ,
143
145
}
144
146
145
147
#[ derive( Debug , Deserialize ) ]
148
+ #[ serde( rename_all = "camelCase" ) ]
146
149
pub struct FullTypeFieldsArgs {
147
150
#[ serde( flatten) ]
148
151
input_value : InputValue ,
149
152
}
150
153
151
154
#[ derive( Debug , Deserialize ) ]
155
+ #[ serde( rename_all = "camelCase" ) ]
152
156
pub struct FullTypeFieldsType {
153
157
#[ serde( flatten) ]
154
158
type_ref : TypeRef ,
155
159
}
156
160
157
161
#[ derive( Debug , Deserialize ) ]
162
+ #[ serde( rename_all = "camelCase" ) ]
158
163
pub struct FullTypeFields {
159
164
name : Option < String > ,
160
165
description : Option < String > ,
161
166
args : Option < Vec < Option < FullTypeFieldsArgs > > > ,
162
167
#[ serde( rename = "type" ) ]
163
168
type_ : Option < FullTypeFieldsType > ,
164
- isDeprecated : Option < Boolean > ,
169
+ is_deprecated : Option < Boolean > ,
165
170
deprecationReason : Option < String > ,
166
171
}
167
172
168
173
#[ derive( Debug , Deserialize ) ]
174
+ #[ serde( rename_all = "camelCase" ) ]
169
175
pub struct FullTypeInputFields {
170
176
#[ serde( flatten) ]
171
177
input_value : InputValue ,
172
178
}
173
179
174
180
#[ derive( Debug , Deserialize ) ]
181
+ #[ serde( rename_all = "camelCase" ) ]
175
182
pub struct FullTypeInterfaces {
176
183
#[ serde( flatten) ]
177
184
type_ref : TypeRef ,
178
185
}
179
186
180
187
#[ derive( Debug , Deserialize ) ]
188
+ #[ serde( rename_all = "camelCase" ) ]
181
189
pub struct FullTypeEnumValues {
182
190
name : Option < String > ,
183
191
description : Option < String > ,
184
- isDeprecated : Option < Boolean > ,
185
- deprecationReason : Option < String > ,
192
+ is_deprecated : Option < Boolean > ,
193
+ deprecation_reason : Option < String > ,
186
194
}
187
195
188
196
#[ derive( Debug , Deserialize ) ]
197
+ #[ serde( rename_all = "camelCase" ) ]
189
198
pub struct FullTypePossibleTypes {
190
199
#[ serde( flatten) ]
191
200
type_ref : TypeRef ,
192
201
}
193
202
194
203
#[ derive( Debug , Deserialize ) ]
204
+ #[ serde( rename_all = "camelCase" ) ]
195
205
pub struct InputValue {
196
206
name : Option < String > ,
197
207
description : Option < String > ,
198
208
#[ serde( rename = "type" ) ]
199
209
type_ : Option < InputValueType > ,
200
- defaultValue : Option < String > ,
210
+ default_value : Option < String > ,
201
211
}
202
212
203
213
#[ derive( Debug , Deserialize ) ]
214
+ #[ serde( rename_all = "camelCase" ) ]
204
215
pub struct InputValueType {
205
216
#[ serde( flatten) ]
206
217
type_ref : TypeRef ,
207
218
}
208
219
209
220
#[ derive( Debug , Deserialize ) ]
221
+ #[ serde( rename_all = "camelCase" ) ]
210
222
pub struct TypeRef {
211
223
kind : Option < __TypeKind > ,
212
224
name : Option < String > ,
213
- ofType : Option < TypeRefOfType > ,
225
+ of_type : Option < TypeRefOfType > ,
214
226
}
215
227
216
228
#[ derive( Debug , Deserialize ) ]
229
+ #[ serde( rename_all = "camelCase" ) ]
217
230
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfTypeOfType {
218
231
kind : Option < __TypeKind > ,
219
232
name : Option < String > ,
220
233
}
221
234
222
235
#[ derive( Debug , Deserialize ) ]
236
+ #[ serde( rename_all = "camelCase" ) ]
223
237
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfType {
224
238
kind : Option < __TypeKind > ,
225
239
name : Option < String > ,
226
- ofType : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
240
+ of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
227
241
}
228
242
229
243
#[ derive( Debug , Deserialize ) ]
244
+ #[ serde( rename_all = "camelCase" ) ]
230
245
pub struct TypeRefOfTypeOfTypeOfTypeOfTypeOfType {
231
246
kind : Option < __TypeKind > ,
232
247
name : Option < String > ,
233
- ofType : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
248
+ of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfTypeOfType > ,
234
249
}
235
250
236
251
#[ derive( Debug , Deserialize ) ]
252
+ #[ serde( rename_all = "camelCase" ) ]
237
253
pub struct TypeRefOfTypeOfTypeOfTypeOfType {
238
254
kind : Option < __TypeKind > ,
239
255
name : Option < String > ,
240
- ofType : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfType > ,
256
+ of_type : Option < TypeRefOfTypeOfTypeOfTypeOfTypeOfType > ,
241
257
}
242
258
243
259
#[ derive( Debug , Deserialize ) ]
260
+ #[ serde( rename_all = "camelCase" ) ]
244
261
pub struct TypeRefOfTypeOfTypeOfType {
245
262
kind : Option < __TypeKind > ,
246
263
name : Option < String > ,
247
- ofType : Option < TypeRefOfTypeOfTypeOfTypeOfType > ,
264
+ of_type : Option < TypeRefOfTypeOfTypeOfTypeOfType > ,
248
265
}
249
266
250
267
#[ derive( Debug , Deserialize ) ]
268
+ #[ serde( rename_all = "camelCase" ) ]
251
269
pub struct TypeRefOfTypeOfType {
252
270
kind : Option < __TypeKind > ,
253
271
name : Option < String > ,
254
- ofType : Option < TypeRefOfTypeOfTypeOfType > ,
272
+ of_type : Option < TypeRefOfTypeOfTypeOfType > ,
255
273
}
256
274
257
275
#[ derive( Debug , Deserialize ) ]
276
+ #[ serde( rename_all = "camelCase" ) ]
258
277
pub struct TypeRefOfType {
259
278
kind : Option < __TypeKind > ,
260
279
name : Option < String > ,
261
- ofType : Option < TypeRefOfTypeOfType > ,
280
+ of_type : Option < TypeRefOfTypeOfType > ,
262
281
}
263
282
264
283
#[ derive( Debug , Deserialize ) ]
284
+ #[ serde( rename_all = "camelCase" ) ]
265
285
pub struct RustIntrospectionQuerySchemaQueryType {
266
286
name : Option < String > ,
267
287
}
268
288
269
289
#[ derive( Debug , Deserialize ) ]
290
+ #[ serde( rename_all = "camelCase" ) ]
270
291
pub struct RustIntrospectionQuerySchemaMutationType {
271
292
name : Option < String > ,
272
293
}
273
294
274
295
#[ derive( Debug , Deserialize ) ]
296
+ #[ serde( rename_all = "camelCase" ) ]
275
297
pub struct RustIntrospectionQuerySchemaSubscriptionType {
276
298
name : Option < String > ,
277
299
}
278
300
279
301
#[ derive( Debug , Deserialize ) ]
302
+ #[ serde( rename_all = "camelCase" ) ]
280
303
pub struct RustIntrospectionQuerySchemaTypes {
281
304
#[ serde( flatten) ]
282
305
full_type : FullType ,
283
306
}
284
307
285
308
#[ derive( Debug , Deserialize ) ]
309
+ #[ serde( rename_all = "camelCase" ) ]
286
310
pub struct RustIntrospectionQuerySchemaDirectivesArgs {
287
311
#[ serde( flatten) ]
288
312
input_value : InputValue ,
289
313
}
290
314
291
315
#[ derive( Debug , Deserialize ) ]
316
+ #[ serde( rename_all = "camelCase" ) ]
292
317
pub struct RustIntrospectionQuerySchemaDirectives {
293
318
name : Option < String > ,
294
319
description : Option < String > ,
@@ -297,10 +322,11 @@ pub struct RustIntrospectionQuerySchemaDirectives {
297
322
}
298
323
299
324
#[ derive( Debug , Deserialize ) ]
325
+ #[ serde( rename_all = "camelCase" ) ]
300
326
pub struct RustIntrospectionQuerySchema {
301
- queryType : Option < RustIntrospectionQuerySchemaQueryType > ,
302
- mutationType : Option < RustIntrospectionQuerySchemaMutationType > ,
303
- subscriptionType : Option < RustIntrospectionQuerySchemaSubscriptionType > ,
327
+ query_type : Option < RustIntrospectionQuerySchemaQueryType > ,
328
+ mutation_type : Option < RustIntrospectionQuerySchemaMutationType > ,
329
+ subscription_type : Option < RustIntrospectionQuerySchemaSubscriptionType > ,
304
330
types : Option < Vec < Option < RustIntrospectionQuerySchemaTypes > > > ,
305
331
directives : Option < Vec < Option < RustIntrospectionQuerySchemaDirectives > > > ,
306
332
}
0 commit comments