Skip to main content

mattermost_rust_client/models/
login_request.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn). 
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct LoginRequest {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    #[serde(rename = "login_id", skip_serializing_if = "Option::is_none")]
19    pub login_id: Option<String>,
20    #[serde(rename = "token", skip_serializing_if = "Option::is_none")]
21    pub token: Option<String>,
22    #[serde(rename = "device_id", skip_serializing_if = "Option::is_none")]
23    pub device_id: Option<String>,
24    #[serde(rename = "ldap_only", skip_serializing_if = "Option::is_none")]
25    pub ldap_only: Option<bool>,
26    /// The password used for email authentication.
27    #[serde(rename = "password", skip_serializing_if = "Option::is_none")]
28    pub password: Option<String>,
29}
30
31impl LoginRequest {
32    pub fn new() -> LoginRequest {
33        LoginRequest {
34            id: None,
35            login_id: None,
36            token: None,
37            device_id: None,
38            ldap_only: None,
39            password: None,
40        }
41    }
42}
43
44