pub struct Task {Show 25 fields
pub id: String,
pub user_id: String,
pub content: String,
pub description: String,
pub project_id: String,
pub section_id: Option<String>,
pub parent_id: Option<String>,
pub added_by_uid: Option<String>,
pub assigned_by_uid: Option<String>,
pub responsible_uid: Option<String>,
pub labels: Vec<String>,
pub deadline: Option<Deadline>,
pub duration: Option<Duration>,
pub checked: bool,
pub is_deleted: bool,
pub added_at: String,
pub completed_at: Option<String>,
pub completed_by_uid: Option<String>,
pub updated_at: Option<String>,
pub due: Option<Due>,
pub priority: i32,
pub child_order: i32,
pub note_count: i32,
pub day_order: i32,
pub is_collapsed: bool,
}Expand description
Todoist Task model (API v1) Represents a task item as returned by the Unified API v1 (ItemSyncView)
Fields§
§id: String§user_id: StringUser ID of the task creator (API returns this as user_id)
content: String§description: String§project_id: String§section_id: Option<String>§parent_id: Option<String>§added_by_uid: Option<String>§assigned_by_uid: Option<String>§responsible_uid: Option<String>§labels: Vec<String>§deadline: Option<Deadline>§duration: Option<Duration>§checked: boolWhether the task is completed
is_deleted: boolWhether the task is deleted
added_at: String§completed_at: Option<String>When the task was completed (ISO 8601)
completed_by_uid: Option<String>User ID who completed the task
updated_at: Option<String>§due: Option<Due>§priority: i32§child_order: i32§note_count: i32Deprecated: always returns 0
day_order: i32§is_collapsed: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more