mattermost_rust_client/models/
channel_unread.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 ChannelUnread {
16    #[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
17    pub team_id: Option<String>,
18    #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")]
19    pub channel_id: Option<String>,
20    #[serde(rename = "msg_count", skip_serializing_if = "Option::is_none")]
21    pub msg_count: Option<i32>,
22    #[serde(rename = "mention_count", skip_serializing_if = "Option::is_none")]
23    pub mention_count: Option<i32>,
24}
25
26impl ChannelUnread {
27    pub fn new() -> ChannelUnread {
28        ChannelUnread {
29            team_id: None,
30            channel_id: None,
31            msg_count: None,
32            mention_count: None,
33        }
34    }
35}
36
37