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
44
45
46
47
48
49
/*
* Mattermost API Reference
*
* There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
*
* The version of the OpenAPI document: 4.0.0
* Contact: feedback@mattermost.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InlineObject18 {
/// The service the user currently uses to login
#[serde(rename = "current_service")]
pub current_service: String,
/// The service the user will use to login
#[serde(rename = "new_service")]
pub new_service: String,
/// The email of the user
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// The password used with the current service
#[serde(rename = "password", skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
/// The MFA code of the current service
#[serde(rename = "mfa_code", skip_serializing_if = "Option::is_none")]
pub mfa_code: Option<String>,
/// The LDAP/AD id of the user
#[serde(rename = "ldap_id", skip_serializing_if = "Option::is_none")]
pub ldap_id: Option<String>,
}
impl InlineObject18 {
pub fn new(current_service: String, new_service: String) -> InlineObject18 {
InlineObject18 {
current_service,
new_service,
email: None,
password: None,
mfa_code: None,
ldap_id: None,
}
}
}