pub struct Task {Show 26 fields
pub uuid: ThingsId,
pub title: String,
pub status: TaskStatus,
pub start: TaskStart,
pub item_type: TaskType,
pub entity: String,
pub notes: Option<String>,
pub project: Option<ThingsId>,
pub area: Option<ThingsId>,
pub action_group: Option<ThingsId>,
pub tags: Vec<ThingsId>,
pub trashed: bool,
pub deadline: Option<DateTime<Utc>>,
pub start_date: Option<DateTime<Utc>>,
pub stop_date: Option<DateTime<Utc>>,
pub creation_date: Option<DateTime<Utc>>,
pub modification_date: Option<DateTime<Utc>>,
pub index: i32,
pub today_index: i32,
pub today_index_reference: Option<i64>,
pub leaves_tombstone: bool,
pub instance_creation_paused: bool,
pub evening: bool,
pub recurrence_rule: Option<RecurrenceRule>,
pub recurrence_templates: Vec<ThingsId>,
pub checklist_items: Vec<ChecklistItem>,
}Fields§
§uuid: ThingsId§title: String§status: TaskStatus§start: TaskStart§item_type: TaskType§entity: String§notes: Option<String>§project: Option<ThingsId>§area: Option<ThingsId>§action_group: Option<ThingsId>§trashed: bool§deadline: Option<DateTime<Utc>>§start_date: Option<DateTime<Utc>>§stop_date: Option<DateTime<Utc>>§creation_date: Option<DateTime<Utc>>§modification_date: Option<DateTime<Utc>>§index: i32§today_index: i32§today_index_reference: Option<i64>§leaves_tombstone: bool§instance_creation_paused: bool§evening: bool§recurrence_rule: Option<RecurrenceRule>§recurrence_templates: Vec<ThingsId>§checklist_items: Vec<ChecklistItem>Implementations§
Source§impl Task
impl Task
pub fn is_incomplete(&self) -> bool
pub fn is_completed(&self) -> bool
pub fn is_canceled(&self) -> bool
pub fn is_todo(&self) -> bool
pub fn is_project(&self) -> bool
pub fn is_heading(&self) -> bool
pub fn in_someday(&self) -> bool
pub fn is_today(&self, today: &DateTime<Utc>) -> bool
pub fn is_staged_for_today(&self, today: &DateTime<Utc>) -> bool
pub fn is_recurrence_template(&self) -> bool
pub fn is_recurrence_instance(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin 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