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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
use types::*;
use super::NotificationService;
#[derive(Serialize, Deserialize, Default, Debug)]
#[serde(default)]
pub struct Collaborator {
pub id: ID,
pub email : String,
pub timezone : String,
pub image_id : String,
}
#[derive(Serialize, Deserialize, Default, Debug)]
#[serde(default)]
pub struct User {
pub id : ID,
pub token : String,
pub email : String,
pub full_name : String,
pub inbox_project : ID,
pub tz_info : TimeZoneInfo,
pub start_page : String,
pub start_day : isize,
pub next_week : isize,
pub time_format : isize,
pub date_format : isize,
pub sort_order : isize,
pub default_reminder : NotificationService,
pub auto_reminder : isize,
pub mobile_number : Option<String>,
pub mobile_host : Option<String>,
pub completed_count : isize,
pub completed_today : isize,
pub karma : f64,
pub karma_trend : String,
pub is_premium : bool,
pub premium_until : Option<String>,
pub is_biz_admin : bool,
pub business_account_id : Option<ID>,
pub image_id : Option<String>,
pub avatar_small : Option<String>,
pub avatar_medium : Option<String>,
pub avatar_big : Option<String>,
pub theme : isize,
#[serde(skip)]
pub features : Option<()>,
pub join_date : Date,
}