mattermost_client/openapi/models/
channel_stats.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#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
12pub struct ChannelStats {
13    #[serde(rename = "channel_id", skip_serializing_if = "Option::is_none")]
14    pub channel_id: Option<String>,
15    #[serde(rename = "member_count", skip_serializing_if = "Option::is_none")]
16    pub member_count: Option<i32>,
17}
18
19impl ChannelStats {
20    pub fn new() -> ChannelStats {
21        ChannelStats {
22            channel_id: None,
23            member_count: None,
24        }
25    }
26}