mattermost_client/openapi/models/
create_post_request_metadata.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/// CreatePostRequestMetadata : A JSON object to add post metadata, e.g the post's priority
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct CreatePostRequestMetadata {
15    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
16    pub priority: Option<Box<crate::openapi::models::CreatePostRequestMetadataPriority>>,
17}
18
19impl CreatePostRequestMetadata {
20    /// A JSON object to add post metadata, e.g the post's priority
21    pub fn new() -> CreatePostRequestMetadata {
22        CreatePostRequestMetadata { priority: None }
23    }
24}