[][src]Struct taskchampion::TaskMut

pub struct TaskMut<'r> { /* fields omitted */ }

A mutable task, with setter methods. Most methods are simple setters and not further described. Calling a setter will update the Replica, as well as the included Task.

Implementations

impl<'r> TaskMut<'r>[src]

pub fn into_immut(self) -> Task[src]

Get the immutable version of this object. Note that TaskMut std::ops::Derefs to crate::task::Task, so all of that struct's getter methods can be used on TaskMut.

pub fn set_status(&mut self, status: Status) -> Fallible<()>[src]

Set the task's status. This also adds the task to the working set if the new status puts it in that set.

pub fn set_description(&mut self, description: String) -> Fallible<()>[src]

pub fn set_modified(&mut self, modified: DateTime<Utc>) -> Fallible<()>[src]

pub fn start(&mut self) -> Fallible<()>[src]

Start the task by creating "start.<timestamp": "", if the task is not already active.

pub fn stop(&mut self) -> Fallible<()>[src]

Stop the task by adding the current timestamp to all un-resolved "start." keys.

Methods from Deref<Target = Task>

pub fn get_uuid(&self) -> &Uuid[src]

pub fn get_taskmap(&self) -> &TaskMap[src]

pub fn get_status(&self) -> Status[src]

pub fn get_description(&self) -> &str[src]

pub fn is_active(&self) -> bool[src]

Determine whether this task is active -- that is, that it has been started and not stopped.

pub fn get_modified(&self) -> Option<DateTime<Utc>>[src]

pub fn get_timestamp(&self, property: &str) -> Option<DateTime<Utc>>[src]

Trait Implementations

impl<'r> Deref for TaskMut<'r>[src]

type Target = Task

The resulting type after dereferencing.

Auto Trait Implementations

impl<'r> !RefUnwindSafe for TaskMut<'r>

impl<'r> !Send for TaskMut<'r>

impl<'r> !Sync for TaskMut<'r>

impl<'r> Unpin for TaskMut<'r>

impl<'r> !UnwindSafe for TaskMut<'r>

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,