mattermost_client/openapi/models/
top_dm.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 TopDm {
13    #[serde(rename = "post_count", skip_serializing_if = "Option::is_none")]
14    pub post_count: Option<i64>,
15    #[serde(
16        rename = "outgoing_message_count",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub outgoing_message_count: Option<i64>,
20    #[serde(rename = "second_participant", skip_serializing_if = "Option::is_none")]
21    pub second_participant: Option<Box<crate::openapi::models::TopDmInsightUserInformation>>,
22}
23
24impl TopDm {
25    pub fn new() -> TopDm {
26        TopDm {
27            post_count: None,
28            outgoing_message_count: None,
29            second_participant: None,
30        }
31    }
32}