revolt_api/models/data_change_email.rs
1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct DataChangeEmail {
16 /// Valid email address
17 #[serde(rename = "email")]
18 pub email: String,
19 /// Current password
20 #[serde(rename = "current_password")]
21 pub current_password: String,
22}
23
24impl DataChangeEmail {
25 pub fn new(email: String, current_password: String) -> DataChangeEmail {
26 DataChangeEmail {
27 email,
28 current_password,
29 }
30 }
31}
32
33