mattermost_rust_client/models/
post_list.rs1#[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 #[serde(rename = "next_post_id", skip_serializing_if = "Option::is_none")]
22 pub next_post_id: Option<String>,
23 #[serde(rename = "prev_post_id", skip_serializing_if = "Option::is_none")]
25 pub prev_post_id: Option<String>,
26 #[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