1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use js_int::UInt;
use ruma_api::ruma_api;
ruma_api! {
metadata {
description: "Request a register token with a 3rd party email.",
method: POST,
name: "request_register_token",
path: "/_matrix/client/r0/register/email/requestToken",
rate_limited: true,
requires_authentication: true,
}
request {
pub client_secret: String,
pub email: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub id_server: Option<String>,
pub send_attempt: UInt,
}
response {}
}