Skip to main content

mattermost_rust_client/models/
channel_with_team_data.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 ChannelWithTeamData {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<String>,
18    /// The time in milliseconds a channel was created
19    #[serde(rename = "create_at", skip_serializing_if = "Option::is_none")]
20    pub create_at: Option<i64>,
21    /// The time in milliseconds a channel was last updated
22    #[serde(rename = "update_at", skip_serializing_if = "Option::is_none")]
23    pub update_at: Option<i64>,
24    /// The time in milliseconds a channel was deleted
25    #[serde(rename = "delete_at", skip_serializing_if = "Option::is_none")]
26    pub delete_at: Option<i64>,
27    #[serde(rename = "team_id", skip_serializing_if = "Option::is_none")]
28    pub team_id: Option<String>,
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
32    pub display_name: Option<String>,
33    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
34    pub name: Option<String>,
35    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
36    pub header: Option<String>,
37    #[serde(rename = "purpose", skip_serializing_if = "Option::is_none")]
38    pub purpose: Option<String>,
39    /// The time in milliseconds of the last post of a channel
40    #[serde(rename = "last_post_at", skip_serializing_if = "Option::is_none")]
41    pub last_post_at: Option<i32>,
42    #[serde(rename = "total_msg_count", skip_serializing_if = "Option::is_none")]
43    pub total_msg_count: Option<i32>,
44    /// Deprecated in Mattermost 5.0 release
45    #[serde(rename = "extra_update_at", skip_serializing_if = "Option::is_none")]
46    pub extra_update_at: Option<i64>,
47    #[serde(rename = "creator_id", skip_serializing_if = "Option::is_none")]
48    pub creator_id: Option<String>,
49    /// The display name of the team to which this channel belongs.
50    #[serde(rename = "team_display_name", skip_serializing_if = "Option::is_none")]
51    pub team_display_name: Option<String>,
52    /// The name of the team to which this channel belongs.
53    #[serde(rename = "team_name", skip_serializing_if = "Option::is_none")]
54    pub team_name: Option<String>,
55    /// The time at which the team to which this channel belongs was last updated.
56    #[serde(rename = "team_update_at", skip_serializing_if = "Option::is_none")]
57    pub team_update_at: Option<i32>,
58    /// The data retention policy to which this team has been assigned. If no such policy exists, or the caller does not have the `sysconsole_read_compliance_data_retention` permission, this field will be null.
59    #[serde(rename = "policy_id", skip_serializing_if = "Option::is_none")]
60    pub policy_id: Option<String>,
61}
62
63impl ChannelWithTeamData {
64    pub fn new() -> ChannelWithTeamData {
65        ChannelWithTeamData {
66            id: None,
67            create_at: None,
68            update_at: None,
69            delete_at: None,
70            team_id: None,
71            r#type: None,
72            display_name: None,
73            name: None,
74            header: None,
75            purpose: None,
76            last_post_at: None,
77            total_msg_count: None,
78            extra_update_at: None,
79            creator_id: None,
80            team_display_name: None,
81            team_name: None,
82            team_update_at: None,
83            policy_id: None,
84        }
85    }
86}
87
88