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 UserNotifyProps {
/// Set to \"true\" to enable email notifications, \"false\" to disable. Defaults to \"true\".
#[serde(rename = "email", skip_serializing_if = "Option::is_none")]
pub email: Option<String>,
/// Set to \"all\" to receive push notifications for all activity, \"mention\" for mentions and direct messages only, and \"none\" to disable. Defaults to \"mention\".
#[serde(rename = "push", skip_serializing_if = "Option::is_none")]
pub push: Option<String>,
/// Set to \"all\" to receive desktop notifications for all activity, \"mention\" for mentions and direct messages only, and \"none\" to disable. Defaults to \"all\".
#[serde(rename = "desktop", skip_serializing_if = "Option::is_none")]
pub desktop: Option<String>,
/// Set to \"true\" to enable sound on desktop notifications, \"false\" to disable. Defaults to \"true\".
#[serde(rename = "desktop_sound", skip_serializing_if = "Option::is_none")]
pub desktop_sound: Option<String>,
/// A comma-separated list of words to count as mentions. Defaults to username and @username.
#[serde(rename = "mention_keys", skip_serializing_if = "Option::is_none")]
pub mention_keys: Option<String>,
/// Set to \"true\" to enable channel-wide notifications (@channel, @all, etc.), \"false\" to disable. Defaults to \"true\".
#[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
pub channel: Option<String>,
/// Set to \"true\" to enable mentions for first name. Defaults to \"true\" if a first name is set, \"false\" otherwise.
#[serde(rename = "first_name", skip_serializing_if = "Option::is_none")]
pub first_name: Option<String>,
}
impl UserNotifyProps {
pub fn new() -> UserNotifyProps {
UserNotifyProps {
email: None,
push: None,
desktop: None,
desktop_sound: None,
mention_keys: None,
channel: None,
first_name: None,
}
}
}