@@ -26,25 +26,25 @@ fn interface_deserialization() {
2626
2727 let expected = ResponseData {
2828 everything : Some ( vec ! [
29- RustMyQueryEverything {
29+ MyQueryEverything {
3030 name: "Audrey Lorde" . to_string( ) ,
31- on: RustMyQueryEverythingOn :: Person ( RustMyQueryEverythingOnPerson {
31+ on: MyQueryEverythingOn :: Person ( MyQueryEverythingOnPerson {
3232 birthday: Some ( "1934-02-18" . to_string( ) ) ,
3333 } ) ,
3434 } ,
35- RustMyQueryEverything {
35+ MyQueryEverything {
3636 name: "Laïka" . to_string( ) ,
37- on: RustMyQueryEverythingOn :: Dog ( RustMyQueryEverythingOnDog { is_good_dog: true } ) ,
37+ on: MyQueryEverythingOn :: Dog ( MyQueryEverythingOnDog { is_good_dog: true } ) ,
3838 } ,
39- RustMyQueryEverything {
39+ MyQueryEverything {
4040 name: "Mozilla" . to_string( ) ,
41- on: RustMyQueryEverythingOn :: Organization ( RustMyQueryEverythingOnOrganization {
41+ on: MyQueryEverythingOn :: Organization ( MyQueryEverythingOnOrganization {
4242 industry: Industry :: OTHER ,
4343 } ) ,
4444 } ,
45- RustMyQueryEverything {
45+ MyQueryEverything {
4646 name: "Norbert" . to_string( ) ,
47- on: RustMyQueryEverythingOn :: Dog ( RustMyQueryEverythingOnDog { is_good_dog: true } ) ,
47+ on: MyQueryEverythingOn :: Dog ( MyQueryEverythingOnDog { is_good_dog: true } ) ,
4848 } ,
4949 ] ) ,
5050 } ;
@@ -71,7 +71,7 @@ fn interface_not_on_everything_deserialization() {
7171
7272 println ! ( "{:?}" , response_data) ;
7373
74- let expected = r##"ResponseData { everything: Some([RustMyQueryEverything { name: "Audrey Lorde", on: Person(RustMyQueryEverythingOnPerson { birthday: Some("1934-02-18") }) }, RustMyQueryEverything { name: "Laïka", on: Dog }, RustMyQueryEverything { name: "Mozilla", on: Organization(RustMyQueryEverythingOnOrganization { industry: OTHER }) }, RustMyQueryEverything { name: "Norbert", on: Dog }]) }"## ;
74+ let expected = r##"ResponseData { everything: Some([MyQueryEverything { name: "Audrey Lorde", on: Person(MyQueryEverythingOnPerson { birthday: Some("1934-02-18") }) }, MyQueryEverything { name: "Laïka", on: Dog }, MyQueryEverything { name: "Mozilla", on: Organization(MyQueryEverythingOnOrganization { industry: OTHER }) }, MyQueryEverything { name: "Norbert", on: Dog }]) }"## ;
7575
7676 assert_eq ! ( format!( "{:?}" , response_data) , expected) ;
7777
@@ -99,36 +99,36 @@ fn fragment_in_interface() {
9999 response_data,
100100 ResponseData {
101101 everything: Some ( vec![
102- RustInterfaceWithFragmentQueryEverything {
102+ InterfaceWithFragmentQueryEverything {
103103 name: "Audrey Lorde" . to_string( ) ,
104104 public_status: PublicStatus {
105105 display_name: false ,
106106 } ,
107- on: RustInterfaceWithFragmentQueryEverythingOn :: Person (
108- RustInterfaceWithFragmentQueryEverythingOnPerson {
107+ on: InterfaceWithFragmentQueryEverythingOn :: Person (
108+ InterfaceWithFragmentQueryEverythingOnPerson {
109109 birthday: Some ( "1934-02-18" . to_string( ) ) ,
110110 }
111111 )
112112 } ,
113- RustInterfaceWithFragmentQueryEverything {
113+ InterfaceWithFragmentQueryEverything {
114114 name: "Laïka" . to_string( ) ,
115115 public_status: PublicStatus { display_name: true } ,
116- on: RustInterfaceWithFragmentQueryEverythingOn :: Dog (
117- RustInterfaceWithFragmentQueryEverythingOnDog { is_good_dog: true }
116+ on: InterfaceWithFragmentQueryEverythingOn :: Dog (
117+ InterfaceWithFragmentQueryEverythingOnDog { is_good_dog: true }
118118 )
119119 } ,
120- RustInterfaceWithFragmentQueryEverything {
120+ InterfaceWithFragmentQueryEverything {
121121 name: "Mozilla" . to_string( ) ,
122122 public_status: PublicStatus {
123123 display_name: false
124124 } ,
125- on: RustInterfaceWithFragmentQueryEverythingOn :: Organization ,
125+ on: InterfaceWithFragmentQueryEverythingOn :: Organization ,
126126 } ,
127- RustInterfaceWithFragmentQueryEverything {
127+ InterfaceWithFragmentQueryEverything {
128128 name: "Norbert" . to_string( ) ,
129129 public_status: PublicStatus { display_name: true } ,
130- on: RustInterfaceWithFragmentQueryEverythingOn :: Dog (
131- RustInterfaceWithFragmentQueryEverythingOnDog { is_good_dog: true }
130+ on: InterfaceWithFragmentQueryEverythingOn :: Dog (
131+ InterfaceWithFragmentQueryEverythingOnDog { is_good_dog: true }
132132 ) ,
133133 } ,
134134 ] )
0 commit comments