mattermost_rust_client/models/
migrate_auth_to_ldap_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 MigrateAuthToLdapRequest {
16    /// The current authentication type for the matched users.
17    #[serde(rename = "from")]
18    pub from: String,
19    /// Foreign user field name to match.
20    #[serde(rename = "match_field")]
21    pub match_field: String,
22    #[serde(rename = "force")]
23    pub force: bool,
24}
25
26impl MigrateAuthToLdapRequest {
27    pub fn new(from: String, match_field: String, force: bool) -> MigrateAuthToLdapRequest {
28        MigrateAuthToLdapRequest {
29            from,
30            match_field,
31            force,
32        }
33    }
34}
35
36