[][src]Struct task_hookrs::task::TaskBuilder

pub struct TaskBuilder { /* fields omitted */ }

Builder for Task.

Methods

impl TaskBuilder[src]

pub fn id<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self[src]

The temporary assigned task id

pub fn status<VALUE: Into<TaskStatus>>(&mut self, value: VALUE) -> &mut Self[src]

The status of the task

pub fn uuid<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self[src]

The uuid which identifies the task and is important for syncing

pub fn entry<VALUE: Into<Date>>(&mut self, value: VALUE) -> &mut Self[src]

The entry date, when this task was created

pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

The description of the task (i.e. its main content) This field is the only mandatory field, when using the TaskBuilder.

pub fn annotations<VALUE: Into<Option<Vec<Annotation>>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A list of annotations with timestamps

pub fn depends<VALUE: Into<Option<Vec<Uuid>>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The uuids of other tasks which have to be completed before this one becomes unblocked.

pub fn due<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

The due date of the task

pub fn end<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

When the task was last deleted or completed

pub fn imask<VALUE: Into<Option<f64>>>(&mut self, value: VALUE) -> &mut Self[src]

The imask is used internally for recurrence

pub fn mask<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self[src]

The mask is used internally for recurrence

pub fn modified<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

When the task was last modified

pub fn parent<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self[src]

A task can have a parent task

pub fn priority<VALUE: Into<Option<TaskPriority>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The priority of the task

pub fn project<VALUE: Into<Option<Project>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

A task can be part of a project. Typically of the form "project.subproject.subsubproject"

pub fn recur<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self[src]

The timespan after which this task should recur

pub fn scheduled<VALUE: Into<Option<Date>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

When the task becomes ready

pub fn start<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

When the task becomes active

pub fn tags<VALUE: Into<Option<Vec<Tag>>>>(&mut self, value: VALUE) -> &mut Self[src]

The tags associated with the task

pub fn until<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

When the recurrence stops

pub fn wait<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self[src]

This hides the task until the wait date

pub fn uda<VALUE: Into<UDA>>(&mut self, value: VALUE) -> &mut Self[src]

A map of user defined attributes

pub fn build(&self) -> Result<Task, String>[src]

Builds a new Task.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TaskBuilder[src]

impl Default for TaskBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]