1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Mattermost API Reference
*
* There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn).
*
* The version of the OpenAPI document: 4.0.0
* Contact: feedback@mattermost.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct InlineObject62 {
/// The search terms as inputed by the user. To search for posts from a user include `from:someusername`, using a user's username. To search in a specific channel include `in:somechannel`, using the channel name (not the display name).
#[serde(rename = "terms")]
pub terms: String,
/// Set to true if an Or search should be performed vs an And search.
#[serde(rename = "is_or_search")]
pub is_or_search: bool,
/// Offset from UTC of user timezone for date searches.
#[serde(rename = "time_zone_offset", skip_serializing_if = "Option::is_none")]
pub time_zone_offset: Option<i32>,
/// Set to true if deleted channels should be included in the search. (archived channels)
#[serde(rename = "include_deleted_channels", skip_serializing_if = "Option::is_none")]
pub include_deleted_channels: Option<bool>,
/// The page to select. (Only works with Elasticsearch)
#[serde(rename = "page", skip_serializing_if = "Option::is_none")]
pub page: Option<i32>,
/// The number of posts per page. (Only works with Elasticsearch)
#[serde(rename = "per_page", skip_serializing_if = "Option::is_none")]
pub per_page: Option<i32>,
}
impl InlineObject62 {
pub fn new(terms: String, is_or_search: bool) -> InlineObject62 {
InlineObject62 {
terms,
is_or_search,
time_zone_offset: None,
include_deleted_channels: None,
page: None,
per_page: None,
}
}
}