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]

[src]

Create a new Task instance

[src]

Get the status of the task

[src]

Get the status of the task mutable

[src]

Get the uuid of the task

[src]

Get the uuid of the task mutable

[src]

Get the entry date of the task

[src]

Get the entry date of the task mutable

[src]

Get the description of the task

[src]

Get the description of the task mutable

[src]

Get the annotations of the task

[src]

Get the annotations of the task mutable

[src]

Get the depends of the task

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

[src]

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

[src]

Get the due date of the task

[src]

Get the due date of the task mutable

[src]

Get the end date of the task

[src]

Get the end date of the task mutable

[src]

Get the imask of the task

[src]

Get the imask of the task mutable

[src]

Get the mask of the task

[src]

Get the mask of the task mutable

[src]

Get the modified date of the task

[src]

Get the modified date of the task mutable

[src]

Get the parent of the task

[src]

Get the parent of the task mutable

[src]

Get the priority of the task

[src]

Get the priority of the task mutable

[src]

Get the project of the task

[src]

Get the project of the task mutable

[src]

Get the recur of the task

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

[src]

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

[src]

Get the scheduled date of the task

[src]

Get the scheduled date of the task mutable

[src]

Get the start date of the task

[src]

Get the start date of the task mutable

[src]

Get the tags of the task

[src]

Get the tags of the task mutable

[src]

Get the until date of the task

[src]

Get the until date of the task mutable

[src]

Get the wait date of the task

[src]

Get the wait date of the task mutable

Trait Implementations

impl Debug for Task
[src]

[src]

Formats the value using the given formatter.

impl Clone for Task
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more