@@ -38,6 +38,8 @@ pub struct KeysUploadRequest {
38
38
39
39
/// A JSON-encoded string containing the rest of the payload: `device_keys`,
40
40
/// `one_time_keys`, `fallback_keys`.
41
+ ///
42
+ /// It represents the body of the HTTP request.
41
43
#[ wasm_bindgen( readonly) ]
42
44
pub body : JsString ,
43
45
}
@@ -72,6 +74,8 @@ pub struct KeysQueryRequest {
72
74
73
75
/// A JSON-encoded string containing the rest of the payload: `timeout`,
74
76
/// `device_keys`, `token`.
77
+ ///
78
+ /// It represents the body of the HTTP request.
75
79
#[ wasm_bindgen( readonly) ]
76
80
pub body : JsString ,
77
81
}
@@ -107,6 +111,8 @@ pub struct KeysClaimRequest {
107
111
108
112
/// A JSON-encoded string containing the rest of the payload: `timeout`,
109
113
/// `one_time_keys`.
114
+ ///
115
+ /// It represents the body of the HTTP request.
110
116
#[ wasm_bindgen( readonly) ]
111
117
pub body : JsString ,
112
118
}
@@ -149,6 +155,8 @@ pub struct ToDeviceRequest {
149
155
pub txn_id : JsString ,
150
156
151
157
/// A JSON-encoded string containing the rest of the payload: `messages`.
158
+ ///
159
+ /// It represents the body of the HTTP request.
152
160
#[ wasm_bindgen( readonly) ]
153
161
pub body : JsString ,
154
162
}
@@ -187,6 +195,8 @@ pub struct SignatureUploadRequest {
187
195
pub id : Option < JsString > ,
188
196
189
197
/// A JSON-encoded string containing the rest of the payload: `signed_keys`.
198
+ ///
199
+ /// It represents the body of the HTTP request.
190
200
#[ wasm_bindgen( readonly) ]
191
201
pub body : JsString ,
192
202
}
@@ -271,6 +281,8 @@ pub struct KeysBackupRequest {
271
281
pub id : Option < JsString > ,
272
282
273
283
/// A JSON-encoded string containing the rest of the payload: `rooms`.
284
+ ///
285
+ /// It represents the body of the HTTP request.
274
286
#[ wasm_bindgen( readonly) ]
275
287
pub body : JsString ,
276
288
}
@@ -304,6 +316,8 @@ pub struct SigningKeysUploadRequest {
304
316
305
317
/// A JSON-encoded string containing the rest of the payload: `master_key`,
306
318
/// `self_signing_key`, `user_signing_key`.
319
+ ///
320
+ /// It represents the body of the HTTP request.
307
321
#[ wasm_bindgen( readonly) ]
308
322
pub body : JsString ,
309
323
}
@@ -376,15 +390,6 @@ macro_rules! request {
376
390
request!( @__field_type as $field_type ; request = $request, field_name = $field_name)
377
391
} ;
378
392
379
- /*
380
- ( @__field $field_name:ident : $field_mapper:block ; request = $request:expr ) => {
381
- {
382
- let mapper = $field_mapper;
383
- mapper($request)
384
- }
385
- };
386
- */
387
-
388
393
( @__field_type as string ; request = $request: expr, field_name = $field_name: ident ) => {
389
394
$request. $field_name. to_string( ) . into( )
390
395
} ;
0 commit comments