Skip to main content

mattermost_rust_client/models/
top_thread_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 TopThreadList {
16    /// Indicates if there is another page of top threads that can be fetched.
17    #[serde(rename = "has_next", skip_serializing_if = "Option::is_none")]
18    pub has_next: Option<bool>,
19    /// List of top threads.
20    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
21    pub items: Option<Vec<crate::models::TopThread>>,
22}
23
24impl TopThreadList {
25    pub fn new() -> TopThreadList {
26        TopThreadList {
27            has_next: None,
28            items: None,
29        }
30    }
31}
32
33