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
50
51
52
#![allow(missing_docs)]
use serde::Deserialize;
#[derive(Debug, Deserialize)]
pub struct MattermostError {
pub id: String,
pub message: String,
pub request_id: String,
pub status_code: i16,
pub is_oauth: bool,
}
#[derive(Debug, Deserialize)]
pub struct TeamInformation {
pub id: String,
pub create_at: i64,
pub update_at: i64,
pub delete_at: i64,
pub display_name: String,
pub name: String,
pub description: String,
pub email: String,
#[serde(rename = "type")]
pub type_: String,
pub allowed_domains: String,
pub invite_id: String,
pub allow_open_invite: bool,
pub policy_id: Option<String>,
}
#[derive(Debug, Deserialize)]
pub struct TeamsUnreadInformation {
pub teams_id: String,
pub msg_count: u64,
pub mention_count: u64,
}
#[derive(Debug, Deserialize)]
pub struct ChannelInformation {
}