mattermost_rust_client/models/
migrate_auth_to_saml_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 MigrateAuthToSamlRequest {
16    /// The current authentication type for the matched users.
17    #[serde(rename = "from")]
18    pub from: String,
19    /// Users map.
20    #[serde(rename = "matches")]
21    pub matches: serde_json::Value,
22    #[serde(rename = "auto")]
23    pub auto: bool,
24}
25
26impl MigrateAuthToSamlRequest {
27    pub fn new(from: String, matches: serde_json::Value, auto: bool) -> MigrateAuthToSamlRequest {
28        MigrateAuthToSamlRequest {
29            from,
30            matches,
31            auto,
32        }
33    }
34}
35
36