@@ -11,6 +11,7 @@ use crate::prim_str::PrimStr;
11
11
feature = "lib-rustc-serialize" ,
12
12
derive( RustcEncodable , RustcDecodable )
13
13
) ]
14
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
14
15
pub struct Twitter {
15
16
pub statuses : Vec < Status > ,
16
17
pub search_metadata : SearchMetadata ,
@@ -27,6 +28,7 @@ pub type ShortIdStr = PrimStr<ShortId>;
27
28
feature = "lib-rustc-serialize" ,
28
29
derive( RustcEncodable , RustcDecodable )
29
30
) ]
31
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
30
32
pub struct Status {
31
33
pub metadata : Metadata ,
32
34
pub created_at : String ,
@@ -61,6 +63,7 @@ pub struct Status {
61
63
feature = "lib-rustc-serialize" ,
62
64
derive( RustcEncodable , RustcDecodable )
63
65
) ]
66
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
64
67
pub struct Metadata {
65
68
pub result_type : ResultType ,
66
69
pub iso_language_code : LanguageCode ,
@@ -72,6 +75,7 @@ pub struct Metadata {
72
75
feature = "lib-rustc-serialize" ,
73
76
derive( RustcEncodable , RustcDecodable )
74
77
) ]
78
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
75
79
pub struct User {
76
80
pub id : ShortId ,
77
81
pub id_str : ShortIdStr ,
@@ -121,6 +125,7 @@ pub struct User {
121
125
feature = "lib-rustc-serialize" ,
122
126
derive( RustcEncodable , RustcDecodable )
123
127
) ]
128
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
124
129
pub struct UserEntities {
125
130
pub url : Option < UserUrl > ,
126
131
pub description : UserEntitiesDescription ,
@@ -132,6 +137,7 @@ pub struct UserEntities {
132
137
feature = "lib-rustc-serialize" ,
133
138
derive( RustcEncodable , RustcDecodable )
134
139
) ]
140
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
135
141
pub struct UserUrl {
136
142
pub urls : Vec < Url > ,
137
143
}
@@ -142,6 +148,7 @@ pub struct UserUrl {
142
148
feature = "lib-rustc-serialize" ,
143
149
derive( RustcEncodable , RustcDecodable )
144
150
) ]
151
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
145
152
pub struct Url {
146
153
pub url : String ,
147
154
pub expanded_url : String ,
@@ -155,6 +162,7 @@ pub struct Url {
155
162
feature = "lib-rustc-serialize" ,
156
163
derive( RustcEncodable , RustcDecodable )
157
164
) ]
165
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
158
166
pub struct UserEntitiesDescription {
159
167
pub urls : Vec < Url > ,
160
168
}
@@ -165,6 +173,7 @@ pub struct UserEntitiesDescription {
165
173
feature = "lib-rustc-serialize" ,
166
174
derive( RustcEncodable , RustcDecodable )
167
175
) ]
176
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
168
177
pub struct StatusEntities {
169
178
pub hashtags : Vec < Hashtag > ,
170
179
pub symbols : empty:: Array ,
@@ -179,6 +188,7 @@ pub struct StatusEntities {
179
188
feature = "lib-rustc-serialize" ,
180
189
derive( RustcEncodable , RustcDecodable )
181
190
) ]
191
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
182
192
pub struct Hashtag {
183
193
pub text : String ,
184
194
pub indices : Indices ,
@@ -190,6 +200,7 @@ pub struct Hashtag {
190
200
feature = "lib-rustc-serialize" ,
191
201
derive( RustcEncodable , RustcDecodable )
192
202
) ]
203
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
193
204
pub struct UserMention {
194
205
pub screen_name : String ,
195
206
pub name : String ,
@@ -200,6 +211,7 @@ pub struct UserMention {
200
211
201
212
#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
202
213
#[ cfg_attr( feature = "serde" , serde( deny_unknown_fields) ) ]
214
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
203
215
pub struct Media {
204
216
pub id : LongId ,
205
217
pub id_str : LongIdStr ,
@@ -222,6 +234,7 @@ pub struct Media {
222
234
feature = "lib-rustc-serialize" ,
223
235
derive( RustcEncodable , RustcDecodable )
224
236
) ]
237
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
225
238
pub struct Sizes {
226
239
pub medium : Size ,
227
240
pub small : Size ,
@@ -235,6 +248,7 @@ pub struct Sizes {
235
248
feature = "lib-rustc-serialize" ,
236
249
derive( RustcEncodable , RustcDecodable )
237
250
) ]
251
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
238
252
pub struct Size {
239
253
pub w : u16 ,
240
254
pub h : u16 ,
@@ -249,6 +263,7 @@ pub type Indices = (u8, u8);
249
263
feature = "lib-rustc-serialize" ,
250
264
derive( RustcEncodable , RustcDecodable )
251
265
) ]
266
+ #[ cfg_attr( feature = "lib-simd-json" , derive( simd_json_derive:: Serialize ) ) ]
252
267
pub struct SearchMetadata {
253
268
pub completed_in : f32 ,
254
269
pub max_id : LongId ,
0 commit comments