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
54
55
56
57
58
59
60
61
62
63
64
65
/*
* 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 InlineObject3 {
/// The term to match against username, full name, nickname and email
#[serde(rename = "term")]
pub term: String,
/// If provided, only search users on this team
#[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
pub team_id: Option<String>,
/// If provided, only search users not on this team
#[serde(rename = "not_in_team_id", skip_serializing_if = "Option::is_none")]
pub not_in_team_id: Option<String>,
/// If provided, only search users in this channel
#[serde(rename = "in_channel_id", skip_serializing_if = "Option::is_none")]
pub in_channel_id: Option<String>,
/// If provided, only search users not in this channel. Must specifiy `team_id` when using this option
#[serde(rename = "not_in_channel_id", skip_serializing_if = "Option::is_none")]
pub not_in_channel_id: Option<String>,
/// If provided, only search users in this group. Must have `manage_system` permission.
#[serde(rename = "in_group_id", skip_serializing_if = "Option::is_none")]
pub in_group_id: Option<String>,
/// When used with `not_in_channel_id` or `not_in_team_id`, returns only the users that are allowed to join the channel or team based on its group constrains.
#[serde(rename = "group_constrained", skip_serializing_if = "Option::is_none")]
pub group_constrained: Option<bool>,
/// When `true`, include deactivated users in the results
#[serde(rename = "allow_inactive", skip_serializing_if = "Option::is_none")]
pub allow_inactive: Option<bool>,
/// Set this to `true` if you would like to search for users that are not on a team. This option takes precendence over `team_id`, `in_channel_id`, and `not_in_channel_id`.
#[serde(rename = "without_team", skip_serializing_if = "Option::is_none")]
pub without_team: Option<bool>,
/// The maximum number of users to return in the results __Available as of server version 5.6. Defaults to `100` if not provided or on an earlier server version.__
#[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
pub limit: Option<i32>,
}
impl InlineObject3 {
pub fn new(term: String) -> InlineObject3 {
InlineObject3 {
term,
team_id: None,
not_in_team_id: None,
in_channel_id: None,
not_in_channel_id: None,
in_group_id: None,
group_constrained: None,
allow_inactive: None,
without_team: None,
limit: None,
}
}
}