@@ -39,14 +39,14 @@ pub fn query_responses_derive_impl(input: ItemEnum) -> syn::Result<ItemImpl> {
39
39
#[ automatically_derived]
40
40
#[ cfg( not( target_arch = "wasm32" ) ) ]
41
41
impl #impl_generics #crate_name:: QueryResponses for #ident #type_generics #where_clause {
42
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: schemars:: schema:: RootSchema > {
42
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: schemars:: schema:: RootSchema > {
43
43
let subqueries = [
44
44
#( #subquery_calls, ) *
45
45
] ;
46
46
#crate_name:: combine_subqueries:: <#subquery_len, #ident #type_generics, _>( subqueries)
47
47
}
48
48
49
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: cw_schema:: Schema > {
49
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: cw_schema:: Schema > {
50
50
let subqueries = [
51
51
#( #subquery_calls_cw, ) *
52
52
] ;
@@ -81,13 +81,13 @@ pub fn query_responses_derive_impl(input: ItemEnum) -> syn::Result<ItemImpl> {
81
81
#[ automatically_derived]
82
82
#[ cfg( not( target_arch = "wasm32" ) ) ]
83
83
impl #impl_generics #crate_name:: QueryResponses for #ident #type_generics #where_clause {
84
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: schemars:: schema:: RootSchema > {
84
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: schemars:: schema:: RootSchema > {
85
85
:: std:: collections:: BTreeMap :: from( [
86
86
#( #mappings, ) *
87
87
] )
88
88
}
89
89
90
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: cw_schema:: Schema > {
90
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , #crate_name:: cw_schema:: Schema > {
91
91
:: std:: collections:: BTreeMap :: from( [
92
92
#( #cw_mappings, ) *
93
93
] )
@@ -167,10 +167,10 @@ fn parse_subquery(ctx: &Context, v: &Variant, schema_backend: SchemaBackend) ->
167
167
168
168
let return_val = match schema_backend {
169
169
SchemaBackend :: CwSchema => {
170
- parse_quote ! ( <#submsg as #crate_name:: QueryResponses >:: response_schemas_cw_impl ( ) )
170
+ parse_quote ! ( <#submsg as #crate_name:: QueryResponses >:: response_schemas_cw ( ) )
171
171
}
172
172
SchemaBackend :: JsonSchema => {
173
- parse_quote ! ( <#submsg as #crate_name:: QueryResponses >:: response_schemas_impl ( ) )
173
+ parse_quote ! ( <#submsg as #crate_name:: QueryResponses >:: response_schemas ( ) )
174
174
}
175
175
} ;
176
176
@@ -231,14 +231,14 @@ mod tests {
231
231
#[ automatically_derived]
232
232
#[ cfg( not( target_arch = "wasm32" ) ) ]
233
233
impl :: my_crate:: cw_schema:: QueryResponses for QueryMsg {
234
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: schemars:: schema:: RootSchema > {
234
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: schemars:: schema:: RootSchema > {
235
235
:: std:: collections:: BTreeMap :: from( [
236
236
( "supply" . to_string( ) , :: my_crate:: cw_schema:: schema_for!( some_crate:: AnotherType ) ) ,
237
237
( "balance" . to_string( ) , :: my_crate:: cw_schema:: schema_for!( SomeType ) ) ,
238
238
] )
239
239
}
240
240
241
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: cw_schema:: Schema > {
241
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: cw_schema:: Schema > {
242
242
:: std:: collections:: BTreeMap :: from( [
243
243
( "supply" . to_string( ) , :: my_crate:: cw_schema:: cw_schema:: schema_of:: <some_crate:: AnotherType >( ) ) ,
244
244
( "balance" . to_string( ) , :: my_crate:: cw_schema:: cw_schema:: schema_of:: <SomeType >( ) ) ,
@@ -268,20 +268,20 @@ mod tests {
268
268
#[ automatically_derived]
269
269
#[ cfg( not( target_arch = "wasm32" ) ) ]
270
270
impl :: my_crate:: cw_schema:: QueryResponses for ContractQueryMsg {
271
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: schemars:: schema:: RootSchema > {
271
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: schemars:: schema:: RootSchema > {
272
272
let subqueries = [
273
- <QueryMsg1 as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_impl ( ) ,
274
- <whitelist:: QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_impl ( ) ,
275
- <QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_impl ( ) ,
273
+ <QueryMsg1 as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas ( ) ,
274
+ <whitelist:: QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas ( ) ,
275
+ <QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas ( ) ,
276
276
] ;
277
277
:: my_crate:: cw_schema:: combine_subqueries:: <3usize , ContractQueryMsg , _>( subqueries)
278
278
}
279
279
280
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: cw_schema:: Schema > {
280
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: my_crate:: cw_schema:: cw_schema:: Schema > {
281
281
let subqueries = [
282
- <QueryMsg1 as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
283
- <whitelist:: QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
284
- <QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
282
+ <QueryMsg1 as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw ( ) ,
283
+ <whitelist:: QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw ( ) ,
284
+ <QueryMsg as :: my_crate:: cw_schema:: QueryResponses >:: response_schemas_cw ( ) ,
285
285
] ;
286
286
:: my_crate:: cw_schema:: combine_subqueries:: <3usize , ContractQueryMsg , _>( subqueries)
287
287
}
@@ -309,14 +309,14 @@ mod tests {
309
309
#[ automatically_derived]
310
310
#[ cfg( not( target_arch = "wasm32" ) ) ]
311
311
impl :: cosmwasm_schema:: QueryResponses for QueryMsg {
312
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
312
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
313
313
:: std:: collections:: BTreeMap :: from( [
314
314
( "supply" . to_string( ) , :: cosmwasm_schema:: schema_for!( some_crate:: AnotherType ) ) ,
315
315
( "balance" . to_string( ) , :: cosmwasm_schema:: schema_for!( SomeType ) ) ,
316
316
] )
317
317
}
318
318
319
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
319
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
320
320
:: std:: collections:: BTreeMap :: from( [
321
321
( "supply" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <some_crate:: AnotherType >( ) ) ,
322
322
( "balance" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <SomeType >( ) ) ,
@@ -341,11 +341,11 @@ mod tests {
341
341
#[ automatically_derived]
342
342
#[ cfg( not( target_arch = "wasm32" ) ) ]
343
343
impl :: cosmwasm_schema:: QueryResponses for QueryMsg {
344
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
344
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
345
345
:: std:: collections:: BTreeMap :: from( [ ] )
346
346
}
347
347
348
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
348
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
349
349
:: std:: collections:: BTreeMap :: from( [ ] )
350
350
}
351
351
}
@@ -398,14 +398,14 @@ mod tests {
398
398
#[ automatically_derived]
399
399
#[ cfg( not( target_arch = "wasm32" ) ) ]
400
400
impl <T : :: cosmwasm_schema:: schemars:: JsonSchema + :: cosmwasm_schema:: cw_schema:: Schemaifier > :: cosmwasm_schema:: QueryResponses for QueryMsg <T > {
401
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
401
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
402
402
:: std:: collections:: BTreeMap :: from( [
403
403
( "foo" . to_string( ) , :: cosmwasm_schema:: schema_for!( bool ) ) ,
404
404
( "bar" . to_string( ) , :: cosmwasm_schema:: schema_for!( u32 ) ) ,
405
405
] )
406
406
}
407
407
408
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
408
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
409
409
:: std:: collections:: BTreeMap :: from( [
410
410
( "foo" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <bool >( ) ) ,
411
411
( "bar" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <u32 >( ) ) ,
@@ -420,14 +420,14 @@ mod tests {
420
420
#[ automatically_derived]
421
421
#[ cfg( not( target_arch = "wasm32" ) ) ]
422
422
impl <T : std:: fmt:: Debug + SomeTrait + :: cosmwasm_schema:: schemars:: JsonSchema + :: cosmwasm_schema:: cw_schema:: Schemaifier > :: cosmwasm_schema:: QueryResponses for QueryMsg <T > {
423
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
423
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
424
424
:: std:: collections:: BTreeMap :: from( [
425
425
( "foo" . to_string( ) , :: cosmwasm_schema:: schema_for!( bool ) ) ,
426
426
( "bar" . to_string( ) , :: cosmwasm_schema:: schema_for!( u32 ) ) ,
427
427
] )
428
428
}
429
429
430
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
430
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
431
431
:: std:: collections:: BTreeMap :: from( [
432
432
( "foo" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <bool >( ) ) ,
433
433
( "bar" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <u32 >( ) ) ,
@@ -445,14 +445,14 @@ mod tests {
445
445
impl <T : :: cosmwasm_schema:: schemars:: JsonSchema + :: cosmwasm_schema:: cw_schema:: Schemaifier > :: cosmwasm_schema:: QueryResponses for QueryMsg <T >
446
446
where T : std:: fmt:: Debug + SomeTrait ,
447
447
{
448
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
448
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
449
449
:: std:: collections:: BTreeMap :: from( [
450
450
( "foo" . to_string( ) , :: cosmwasm_schema:: schema_for!( bool ) ) ,
451
451
( "bar" . to_string( ) , :: cosmwasm_schema:: schema_for!( u32 ) ) ,
452
452
] )
453
453
}
454
454
455
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
455
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
456
456
:: std:: collections:: BTreeMap :: from( [
457
457
( "foo" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <bool >( ) ) ,
458
458
( "bar" . to_string( ) , :: cosmwasm_schema:: cw_schema:: schema_of:: <u32 >( ) ) ,
@@ -556,20 +556,20 @@ mod tests {
556
556
#[ automatically_derived]
557
557
#[ cfg( not( target_arch = "wasm32" ) ) ]
558
558
impl :: cosmwasm_schema:: QueryResponses for ContractQueryMsg {
559
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
559
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
560
560
let subqueries = [
561
- <QueryMsg1 as :: cosmwasm_schema:: QueryResponses >:: response_schemas_impl ( ) ,
562
- <whitelist:: QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_impl ( ) ,
563
- <QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_impl ( ) ,
561
+ <QueryMsg1 as :: cosmwasm_schema:: QueryResponses >:: response_schemas ( ) ,
562
+ <whitelist:: QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas ( ) ,
563
+ <QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas ( ) ,
564
564
] ;
565
565
:: cosmwasm_schema:: combine_subqueries:: <3usize , ContractQueryMsg , _>( subqueries)
566
566
}
567
567
568
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
568
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
569
569
let subqueries = [
570
- <QueryMsg1 as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
571
- <whitelist:: QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
572
- <QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw_impl ( ) ,
570
+ <QueryMsg1 as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw ( ) ,
571
+ <whitelist:: QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw ( ) ,
572
+ <QueryMsg as :: cosmwasm_schema:: QueryResponses >:: response_schemas_cw ( ) ,
573
573
] ;
574
574
:: cosmwasm_schema:: combine_subqueries:: <3usize , ContractQueryMsg , _>( subqueries)
575
575
}
@@ -593,12 +593,12 @@ mod tests {
593
593
#[ automatically_derived]
594
594
#[ cfg( not( target_arch = "wasm32" ) ) ]
595
595
impl :: cosmwasm_schema:: QueryResponses for EmptyMsg {
596
- fn response_schemas_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
596
+ fn response_schemas ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: schemars:: schema:: RootSchema > {
597
597
let subqueries = [ ] ;
598
598
:: cosmwasm_schema:: combine_subqueries:: <0usize , EmptyMsg , _>( subqueries)
599
599
}
600
600
601
- fn response_schemas_cw_impl ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
601
+ fn response_schemas_cw ( ) -> :: std:: collections:: BTreeMap <String , :: cosmwasm_schema:: cw_schema:: Schema > {
602
602
let subqueries = [ ] ;
603
603
:: cosmwasm_schema:: combine_subqueries:: <0usize , EmptyMsg , _>( subqueries)
604
604
}
0 commit comments