Skip to main content

mattermost_rust_client/models/
post_list.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 PostList {
16    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
17    pub order: Option<Vec<String>>,
18    #[serde(rename = "posts", skip_serializing_if = "Option::is_none")]
19    pub posts: Option<::std::collections::HashMap<String, crate::models::Post>>,
20    /// The ID of next post. Not omitted when empty or not relevant.
21    #[serde(rename = "next_post_id", skip_serializing_if = "Option::is_none")]
22    pub next_post_id: Option<String>,
23    /// The ID of previous post. Not omitted when empty or not relevant.
24    #[serde(rename = "prev_post_id", skip_serializing_if = "Option::is_none")]
25    pub prev_post_id: Option<String>,
26    /// Whether there are more items after this page.
27    #[serde(rename = "has_next", skip_serializing_if = "Option::is_none")]
28    pub has_next: Option<bool>,
29}
30
31impl PostList {
32    pub fn new() -> PostList {
33        PostList {
34            order: None,
35            posts: None,
36            next_post_id: None,
37            prev_post_id: None,
38            has_next: None,
39        }
40    }
41}
42
43