Struct task_hookrs::task::Task

source ·
pub struct Task { /* private fields */ }
Expand description

Task type

A task must have four things:

  • A Status
  • An UUID
  • An Entry-Date
  • A Description

all other Data is optional by taskwarrior. This type is a simple rust representation of the JSON exported by taskwarrior.

For further explanations of the fields please consult the documentation on https://taskwarrior.org/

It is deserializeable and serializeable via serde_json, so importing and exporting taskwarrior tasks is simply serializing and deserializing objects of this type.

Implementations

Create a new Task instance

Get the id of the task

Get the status of the task

Get the status of the task mutable

Get the uuid of the task

Get the uuid of the task mutable

Get the entry date of the task

Get the entry date of the task mutable

Get the description of the task

Get the description of the task mutable

Get the annotations of the task

Get the annotations of the task mutable

Set annotations

Get the dependencies of the task

Get the dependencies of the task mutable

Set depends

Get the due date of the task

Get the due date of the task mutable

Set due

Get the end date of the task

Get the end date of the task mutable

Set end

Get the imask of the task

Get the imask of the task mutable

Set imask

Get the mask of the task

Get the mask of the task mutable

Set mask

Get the modified date of the task

Get the modified date of the task mutable

Set modified

Get the parent of the task

Get the parent of the task mutable

Set parent

Get the priority of the task

Get the priority of the task mutable

Set priority

Get the project of the task

Get the project of the task mutable

Set project

Get the recur of the task

This is exported as String by now. This might change in future versions of this crate.

This is exported as String by now. This might change in future versions of this crate. mutable

Set recur

Get the scheduled date of the task

Get the scheduled date of the task mutable

Set scheduled

Get the start date of the task

Get the start date of the task mutable

Set start

Get the tags of the task

Get the tags of the task mutable

Set tags

Get the until date of the task

Get the until date of the task mutable

Set until

Get the wait date of the task

Get the wait date of the task mutable

Set wait

Get the BTreeMap that contains the UDA

Get the BTreeMap that contains the UDA mutable

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.