Struct todoist_rs::resource::Item
[−]
[src]
pub struct Item { pub id: ID, pub user_id: ID, pub project_id: ID, pub content: Option<String>, pub date_string: Option<String>, pub date_lang: Option<Language>, pub due_date_utc: Option<Date>, pub priority: Priority, pub indent: u8, pub item_order: isize, pub day_order: isize, pub collapsed: isize, pub labels: Vec<ID>, pub assigned_by_uid: Option<ID>, pub responsible_uid: Option<ID>, pub checked: IntBool, pub in_history: IntBool, pub is_deleted: IntBool, pub is_archived: IntBool, pub is_favorite: IntBool, pub sync_id: Option<isize>, pub date_added: Option<Date>, pub auto_reminders: Option<bool>, pub auto_parse_labels: Option<bool>, }
A Todoist task item
Fields
id: ID
The item's unique ID
user_id: ID
The ID of the item's owner
project_id: ID
The ID of the project this item belongs to
content: Option<String>
This item's text, not (e.g. "Do the dishes")
date_string: Option<String>
The date for this TODO examples: "every other day", "tomorrow", "today at 9am"
date_lang: Option<Language>
The date_string's language
due_date_utc: Option<Date>
The date this TODO is due, or none
priority: Priority
this item's importance
indent: u8
this item's indent
item_order: isize
This item's position in the item list, the smallest number should be at the top
day_order: isize
This item's position in the "Today" or "Next 7 Days" list, the smallest number should be at the top
collapsed: isize
0 if this item's children should be hidden
labels: Vec<ID>
a list of label id's for the labels attached to this item
assigned_by_uid: Option<ID>
The user ID of the user who added this item
responsible_uid: Option<ID>
The user ID of the user who is assigned this task
checked: IntBool
1 if this task has been completed
in_history: IntBool
is_deleted: IntBool
is_archived: IntBool
is_favorite: IntBool
sync_id: Option<isize>
used internally by Todoist, here for completeness
date_added: Option<Date>
when this item was added
auto_reminders: Option<bool>
if true this item will use the user's default reminder (this field is CREATE only)
auto_parse_labels: Option<bool>
if true this item's labels will be parsed from the content field (this field is CREATE only)
Trait Implementations
impl Default for Item
[src]
impl Debug for Item
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more