mattermost_client/openapi/models/post_metadata_priority.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/// PostMetadataPriority : Post priority set for this post. This field will be null if no priority metadata has been set.
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct PostMetadataPriority {
15 /// The priority label of a post, could be either empty, important, or urgent.
16 #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
17 pub priority: Option<String>,
18 /// Whether the post author has requested for acknowledgements or not.
19 #[serde(rename = "requested_ack", skip_serializing_if = "Option::is_none")]
20 pub requested_ack: Option<bool>,
21}
22
23impl PostMetadataPriority {
24 /// Post priority set for this post. This field will be null if no priority metadata has been set.
25 pub fn new() -> PostMetadataPriority {
26 PostMetadataPriority {
27 priority: None,
28 requested_ack: None,
29 }
30 }
31}