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
/*
* 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 ChannelUnreadAt {
/// The ID of the team the channel belongs to.
#[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
pub team_id: Option<String>,
/// The ID of the channel the user has access to..
#[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")]
pub channel_id: Option<String>,
/// No. of messages the user has already read.
#[serde(rename = "msg_count", skip_serializing_if = "Option::is_none")]
pub msg_count: Option<i32>,
/// No. of mentions the user has within the unread posts of the channel.
#[serde(rename = "mention_count", skip_serializing_if = "Option::is_none")]
pub mention_count: Option<i32>,
/// time in milliseconds when the user last viewed the channel.
#[serde(rename = "last_viewed_at", skip_serializing_if = "Option::is_none")]
pub last_viewed_at: Option<i32>,
}
impl ChannelUnreadAt {
pub fn new() -> ChannelUnreadAt {
ChannelUnreadAt {
team_id: None,
channel_id: None,
msg_count: None,
mention_count: None,
last_viewed_at: None,
}
}
}