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
50
51
52
53
/*
* 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 TeamMember {
/// The ID of the team this member belongs to.
#[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
pub team_id: Option<String>,
/// The ID of the user this member relates to.
#[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
pub user_id: Option<String>,
/// The complete list of roles assigned to this team member, as a space-separated list of role names, including any roles granted implicitly through permissions schemes.
#[serde(rename = "roles", skip_serializing_if = "Option::is_none")]
pub roles: Option<String>,
/// The time in milliseconds that this team member was deleted.
#[serde(rename = "delete_at", skip_serializing_if = "Option::is_none")]
pub delete_at: Option<i32>,
/// Whether this team member holds the default user role defined by the team's permissions scheme.
#[serde(rename = "scheme_user", skip_serializing_if = "Option::is_none")]
pub scheme_user: Option<bool>,
/// Whether this team member holds the default admin role defined by the team's permissions scheme.
#[serde(rename = "scheme_admin", skip_serializing_if = "Option::is_none")]
pub scheme_admin: Option<bool>,
/// The list of roles explicitly assigned to this team member, as a space separated list of role names. This list does *not* include any roles granted implicitly through permissions schemes.
#[serde(rename = "explicit_roles", skip_serializing_if = "Option::is_none")]
pub explicit_roles: Option<String>,
}
impl TeamMember {
pub fn new() -> TeamMember {
TeamMember {
team_id: None,
user_id: None,
roles: None,
delete_at: None,
scheme_user: None,
scheme_admin: None,
explicit_roles: None,
}
}
}