[−][src]Struct taskchampion::TaskMut
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.
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,