mattermost_rust_client/models/
file_info_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 FileInfoList {
16    #[serde(rename = "order", skip_serializing_if = "Option::is_none")]
17    pub order: Option<Vec<String>>,
18    #[serde(rename = "file_infos", skip_serializing_if = "Option::is_none")]
19    pub file_infos: Option<::std::collections::HashMap<String, crate::models::FileInfo>>,
20    /// The ID of next file info. Not omitted when empty or not relevant.
21    #[serde(rename = "next_file_id", skip_serializing_if = "Option::is_none")]
22    pub next_file_id: Option<String>,
23    /// The ID of previous file info. Not omitted when empty or not relevant.
24    #[serde(rename = "prev_file_id", skip_serializing_if = "Option::is_none")]
25    pub prev_file_id: Option<String>,
26}
27
28impl FileInfoList {
29    pub fn new() -> FileInfoList {
30        FileInfoList {
31            order: None,
32            file_infos: None,
33            next_file_id: None,
34            prev_file_id: None,
35        }
36    }
37}
38
39