mattermost_client/openapi/models/create_post_request_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/// CreatePostRequestMetadataPriority : An object containing the post's priority properties
12
13#[derive(Clone, Debug, PartialEq, Default, serde::Serialize, serde::Deserialize)]
14pub struct CreatePostRequestMetadataPriority {
15 /// The priority label of the post, could empty, important, or urgent
16 #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
17 pub priority: Option<String>,
18 /// Set to true to request for acknowledgements
19 #[serde(rename = "requested_ack", skip_serializing_if = "Option::is_none")]
20 pub requested_ack: Option<bool>,
21}
22
23impl CreatePostRequestMetadataPriority {
24 /// An object containing the post's priority properties
25 pub fn new() -> CreatePostRequestMetadataPriority {
26 CreatePostRequestMetadataPriority {
27 priority: None,
28 requested_ack: None,
29 }
30 }
31}