[−][src]Struct taskchampion::Task
A task, as publicly exposed by this crate.
Note that Task objects represent a snapshot of the task at a moment in time, and are not protected by the atomicity of the backend storage. Concurrent modifications are safe, but a Task that is cached for more than a few seconds may cause the user to see stale data. Fetch, use, and drop Tasks quickly.
This struct contains only getters for various values on the task. The into_mut method returns
a TaskMut which can be used to modify the task.
Implementations
impl Task[src]
pub fn get_uuid(&self) -> &Uuid[src]
pub fn get_taskmap(&self) -> &TaskMap[src]
pub fn into_mut(self, replica: &mut Replica) -> TaskMut<'_>[src]
Prepare to mutate this task, requiring a mutable Replica in order to update the data it contains.
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 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]
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>,