Struct task_hookrs::task::Task [] [src]

pub struct Task { /* fields omitted */ }

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.

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

Methods

impl Task
[src]

Create a new Task instance

Get the status of the task

Get the uuid of the task

Get the entry date of the task

Get the description of the task

Get the annotations of the task

Add an annotation to this task

Add annotations to this task

Get the depends of the task

This is exported as String by now, which might change in future

Get the due date of the task

Get the end date of the task

Get the imask of the task

Get the mask of the task

Get the modified date of the task

Get the parent of the task

Get the priority of the task

Get the project of the task

Get the recur of the task

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

Get the scheduled date of the task

Get the start date of the task

Get the tags of the task

Get the until date of the task

Get the wait date of the task

Trait Implementations

impl Debug for Task
[src]

Formats the value using the given formatter.

impl Clone for Task
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Serialize for Task
[src]

Serializes this value into this serializer.

impl Deserialize for Task
[src]

Deserialize this value given this Deserializer.