@@ -26,25 +26,25 @@ fn interface_deserialization() {
26
26
27
27
let expected = ResponseData {
28
28
everything : Some ( vec ! [
29
- RustMyQueryEverything {
29
+ MyQueryEverything {
30
30
name: "Audrey Lorde" . to_string( ) ,
31
- on: RustMyQueryEverythingOn :: Person ( RustMyQueryEverythingOnPerson {
31
+ on: MyQueryEverythingOn :: Person ( MyQueryEverythingOnPerson {
32
32
birthday: Some ( "1934-02-18" . to_string( ) ) ,
33
33
} ) ,
34
34
} ,
35
- RustMyQueryEverything {
35
+ MyQueryEverything {
36
36
name: "Laïka" . to_string( ) ,
37
- on: RustMyQueryEverythingOn :: Dog ( RustMyQueryEverythingOnDog { is_good_dog: true } ) ,
37
+ on: MyQueryEverythingOn :: Dog ( MyQueryEverythingOnDog { is_good_dog: true } ) ,
38
38
} ,
39
- RustMyQueryEverything {
39
+ MyQueryEverything {
40
40
name: "Mozilla" . to_string( ) ,
41
- on: RustMyQueryEverythingOn :: Organization ( RustMyQueryEverythingOnOrganization {
41
+ on: MyQueryEverythingOn :: Organization ( MyQueryEverythingOnOrganization {
42
42
industry: Industry :: OTHER ,
43
43
} ) ,
44
44
} ,
45
- RustMyQueryEverything {
45
+ MyQueryEverything {
46
46
name: "Norbert" . to_string( ) ,
47
- on: RustMyQueryEverythingOn :: Dog ( RustMyQueryEverythingOnDog { is_good_dog: true } ) ,
47
+ on: MyQueryEverythingOn :: Dog ( MyQueryEverythingOnDog { is_good_dog: true } ) ,
48
48
} ,
49
49
] ) ,
50
50
} ;
@@ -71,7 +71,7 @@ fn interface_not_on_everything_deserialization() {
71
71
72
72
println ! ( "{:?}" , response_data) ;
73
73
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 }]) }"## ;
75
75
76
76
assert_eq ! ( format!( "{:?}" , response_data) , expected) ;
77
77
@@ -99,36 +99,36 @@ fn fragment_in_interface() {
99
99
response_data,
100
100
ResponseData {
101
101
everything: Some ( vec![
102
- RustInterfaceWithFragmentQueryEverything {
102
+ InterfaceWithFragmentQueryEverything {
103
103
name: "Audrey Lorde" . to_string( ) ,
104
104
public_status: PublicStatus {
105
105
display_name: false ,
106
106
} ,
107
- on: RustInterfaceWithFragmentQueryEverythingOn :: Person (
108
- RustInterfaceWithFragmentQueryEverythingOnPerson {
107
+ on: InterfaceWithFragmentQueryEverythingOn :: Person (
108
+ InterfaceWithFragmentQueryEverythingOnPerson {
109
109
birthday: Some ( "1934-02-18" . to_string( ) ) ,
110
110
}
111
111
)
112
112
} ,
113
- RustInterfaceWithFragmentQueryEverything {
113
+ InterfaceWithFragmentQueryEverything {
114
114
name: "Laïka" . to_string( ) ,
115
115
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 }
118
118
)
119
119
} ,
120
- RustInterfaceWithFragmentQueryEverything {
120
+ InterfaceWithFragmentQueryEverything {
121
121
name: "Mozilla" . to_string( ) ,
122
122
public_status: PublicStatus {
123
123
display_name: false
124
124
} ,
125
- on: RustInterfaceWithFragmentQueryEverythingOn :: Organization ,
125
+ on: InterfaceWithFragmentQueryEverythingOn :: Organization ,
126
126
} ,
127
- RustInterfaceWithFragmentQueryEverything {
127
+ InterfaceWithFragmentQueryEverything {
128
128
name: "Norbert" . to_string( ) ,
129
129
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 }
132
132
) ,
133
133
} ,
134
134
] )
0 commit comments