[][src]Struct rememberthemilk::Task

pub struct Task {
    pub id: String,
    pub due: Option<DateTime<Utc>>,
    pub has_due_time: bool,
    pub deleted: Option<DateTime<Utc>>,
    pub added: Option<DateTime<Utc>>,
    pub completed: Option<DateTime<Utc>>,
}

A rememberthemilk Task. In rememberthemilk a task is a specific instance of a possibly repeating item. For example, a weekly task to take out the bins is represented as a single TaskSeries with a different Task every week. A Task's main characteristic is a due date.

Fields

id: String

The task's unique (within the list and task series) id.

due: Option<DateTime<Utc>>

The task's due date, if any.

has_due_time: bool

If true then there is a due date and time, not just date.

deleted: Option<DateTime<Utc>>

The task's deleted date, if any.

added: Option<DateTime<Utc>>

The date/time when this task was added

completed: Option<DateTime<Utc>>

The date/time when this task was completed

Methods

impl Task[src]

pub fn get_time_left(&self) -> TimeLeft[src]

Return the time left (or time since it was due) of a task. For tasks with no due date, or which are already completed, returns Completed.

Trait Implementations

impl Debug for Task[src]

impl<'de> Deserialize<'de> for Task[src]

impl Eq for Task[src]

impl PartialEq<Task> for Task[src]

impl Serialize for Task[src]

impl StructuralEq for Task[src]

impl StructuralPartialEq for Task[src]

Auto Trait Implementations

impl RefUnwindSafe for Task

impl Send for Task

impl Sync for Task

impl Unpin for Task

impl UnwindSafe for Task

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.