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
/*
* Revolt API
*
* Open source user-first chat platform.
*
* The version of the OpenAPI document: 0.6.5
* Contact: contact@revolt.chat
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct DataPasswordReset {
/// Reset token
#[serde(rename = "token")]
pub token: String,
/// New password
#[serde(rename = "password")]
pub password: String,
/// Whether to logout all sessions
#[serde(rename = "remove_sessions", skip_serializing_if = "Option::is_none")]
pub remove_sessions: Option<bool>,
}
impl DataPasswordReset {
pub fn new(token: String, password: String) -> DataPasswordReset {
DataPasswordReset {
token,
password,
remove_sessions: None,
}
}
}