Struct todoist::resource::User
[−]
[src]
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, pub features: Option<()>, pub join_date: Date, }
A Todoist user
Fields
id: ID
The user's ID
token: String
The user's API token
email: String
The user's email
full_name: String
the user's full name, formatted as "Firstname Lastname"
inbox_project: ID
the ID of the user's inbox project
tz_info: TimeZoneInfo
the user's timezone info
start_page: String
the user's default view on todoist
start_day: isize
the first day of the week, between 1 and 7
next_week: isize
the day of next week that tasks will be postponed to
time_format: isize
the format for time, 24h or 12h
date_format: isize
the date format, DD-MM-YY or MM-DD-YY
sort_order: isize
the order to sort items, newest first (1), or oldest first (0)
default_reminder: NotificationService
the default reminder method
auto_reminder: isize
the default time in minutes for automatic reminders set
mobile_number: Option<String>
the user's phone number
mobile_host: Option<String>
the user's mobile host
completed_count: isize
the total number of completed tasks
completed_today: isize
tasks completed today
karma: f64
the user's karma score
karma_trend: String
the user's karma trend, e.g. up
false if this user is a peasant
when this user's premium ends
is_biz_admin: bool
if this user is a business account admin
business_account_id: Option<ID>
the ID of the user's business account
image_id: Option<String>
the ID of this user's avatar
avatar_small: Option<String>
the user's small avatar
avatar_medium: Option<String>
the user's medium avatar
avatar_big: Option<String>
the user's big avatar
theme: isize
the user's UI theme (a number between 0 and 10)
features: Option<()>
used internally by todoist
join_date: Date
When the user joined