[−][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 has_tag(&self, tag: &Tag) -> bool
[src]
Check if this task has the given tag
pub fn get_tags(&self) -> impl Iterator<Item = Tag> + '_
[src]
Iterate over the task's tags
pub fn get_modified(&self) -> Option<DateTime<Utc>>
[src]
Trait Implementations
impl Clone for Task
[src]
impl Debug for Task
[src]
impl PartialEq<Task> for Task
[src]
impl StructuralPartialEq for Task
[src]
Auto Trait Implementations
impl RefUnwindSafe for Task
[src]
impl Send for Task
[src]
impl Sync for Task
[src]
impl Unpin for Task
[src]
impl UnwindSafe for Task
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,