mattermost_rust_client/models/
scheme.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 Scheme {
16    /// The unique identifier of the scheme.
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// The human readable name for the scheme.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// A human readable description of the scheme.
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// The time at which the scheme was created.
26    #[serde(rename = "create_at", skip_serializing_if = "Option::is_none")]
27    pub create_at: Option<i64>,
28    /// The time at which the scheme was last updated.
29    #[serde(rename = "update_at", skip_serializing_if = "Option::is_none")]
30    pub update_at: Option<i64>,
31    /// The time at which the scheme was deleted.
32    #[serde(rename = "delete_at", skip_serializing_if = "Option::is_none")]
33    pub delete_at: Option<i64>,
34    /// The scope to which this scheme can be applied, either \"team\" or \"channel\".
35    #[serde(rename = "scope", skip_serializing_if = "Option::is_none")]
36    pub scope: Option<String>,
37    /// The id of the default team admin role for this scheme.
38    #[serde(rename = "default_team_admin_role", skip_serializing_if = "Option::is_none")]
39    pub default_team_admin_role: Option<String>,
40    /// The id of the default team user role for this scheme.
41    #[serde(rename = "default_team_user_role", skip_serializing_if = "Option::is_none")]
42    pub default_team_user_role: Option<String>,
43    /// The id of the default channel admin role for this scheme.
44    #[serde(rename = "default_channel_admin_role", skip_serializing_if = "Option::is_none")]
45    pub default_channel_admin_role: Option<String>,
46    /// The id of the default channel user role for this scheme.
47    #[serde(rename = "default_channel_user_role", skip_serializing_if = "Option::is_none")]
48    pub default_channel_user_role: Option<String>,
49}
50
51impl Scheme {
52    pub fn new() -> Scheme {
53        Scheme {
54            id: None,
55            name: None,
56            description: None,
57            create_at: None,
58            update_at: None,
59            delete_at: None,
60            scope: None,
61            default_team_admin_role: None,
62            default_team_user_role: None,
63            default_channel_admin_role: None,
64            default_channel_user_role: None,
65        }
66    }
67}
68
69