mattermost_rust_client/models/
patch_post_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 PatchPostRequest {
16    /// Set to `true` to pin the post to the channel it is in
17    #[serde(rename = "is_pinned", skip_serializing_if = "Option::is_none")]
18    pub is_pinned: Option<bool>,
19    /// The message text of the post
20    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
21    pub message: Option<String>,
22    /// The list of files attached to this post
23    #[serde(rename = "file_ids", skip_serializing_if = "Option::is_none")]
24    pub file_ids: Option<Vec<String>>,
25    /// Set to `true` if the post has reactions to it
26    #[serde(rename = "has_reactions", skip_serializing_if = "Option::is_none")]
27    pub has_reactions: Option<bool>,
28    /// A general JSON property bag to attach to the post
29    #[serde(rename = "props", skip_serializing_if = "Option::is_none")]
30    pub props: Option<String>,
31}
32
33impl PatchPostRequest {
34    pub fn new() -> PatchPostRequest {
35        PatchPostRequest {
36            is_pinned: None,
37            message: None,
38            file_ids: None,
39            has_reactions: None,
40            props: None,
41        }
42    }
43}
44
45