mattermost_rust_client/models/
patch_channel_request.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 PatchChannelRequest {
16    /// The unique handle for the channel, will be present in the channel URL
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// The non-unique UI name for the channel
20    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
21    pub display_name: Option<String>,
22    /// A short description of the purpose of the channel
23    #[serde(rename = "purpose", skip_serializing_if = "Option::is_none")]
24    pub purpose: Option<String>,
25    /// Markdown-formatted text to display in the header of the channel
26    #[serde(rename = "header", skip_serializing_if = "Option::is_none")]
27    pub header: Option<String>,
28}
29
30impl PatchChannelRequest {
31    pub fn new() -> PatchChannelRequest {
32        PatchChannelRequest {
33            name: None,
34            display_name: None,
35            purpose: None,
36            header: None,
37        }
38    }
39}
40
41