mattermost_client/openapi/models/
channel_member_count_by_group.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/// ChannelMemberCountByGroup : An object describing group member information in a channel
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct ChannelMemberCountByGroup {
15    /// ID of the group
16    #[serde(rename = "group_id", skip_serializing_if = "Option::is_none")]
17    pub group_id: Option<String>,
18    /// Total number of group members in the channel
19    #[serde(
20        rename = "channel_member_count",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub channel_member_count: Option<f32>,
24    /// Total number of unique timezones for the group members in the channel
25    #[serde(
26        rename = "channel_member_timezones_count",
27        skip_serializing_if = "Option::is_none"
28    )]
29    pub channel_member_timezones_count: Option<f32>,
30}
31
32impl ChannelMemberCountByGroup {
33    /// An object describing group member information in a channel
34    pub fn new() -> ChannelMemberCountByGroup {
35        ChannelMemberCountByGroup {
36            group_id: None,
37            channel_member_count: None,
38            channel_member_timezones_count: None,
39        }
40    }
41}