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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use js_int::UInt;
use ruma_api::ruma_api;
use super::IdentityServerInfo;
ruma_api! {
metadata {
description: "Request that a password change token is sent to the given email address.",
method: POST,
name: "request_password_change_token_via_email",
path: "/_matrix/client/r0/account/password/email/requestToken",
rate_limited: false,
requires_authentication: false,
}
request {
pub client_secret: String,
pub email: String,
pub send_attempt: UInt,
#[serde(skip_serializing_if = "Option::is_none")]
pub next_link: Option<String>,
#[serde(flatten)]
#[serde(skip_serializing_if = "Option::is_none")]
pub identity_server_info: Option<IdentityServerInfo>,
}
response {
pub sid: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub submit_url: Option<String>
}
error: crate::Error
}