Struct task_hookrs::task::TaskBuilder
source · pub struct TaskBuilder { /* private fields */ }
Expand description
Builder for Task
.
Implementations
sourceimpl TaskBuilder
impl TaskBuilder
sourcepub fn id<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<Option<u64>>>(&mut self, value: VALUE) -> &mut Self
The temporary assigned task id
sourcepub fn status<VALUE: Into<TaskStatus>>(&mut self, value: VALUE) -> &mut Self
pub fn status<VALUE: Into<TaskStatus>>(&mut self, value: VALUE) -> &mut Self
The status of the task
sourcepub fn uuid<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn uuid<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
The uuid which identifies the task and is important for syncing
sourcepub fn entry<VALUE: Into<Date>>(&mut self, value: VALUE) -> &mut Self
pub fn entry<VALUE: Into<Date>>(&mut self, value: VALUE) -> &mut Self
The entry date, when this task was created
sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The description of the task (i.e. its main content) This field is the only mandatory field, when using the TaskBuilder.
sourcepub fn annotations<VALUE: Into<Option<Vec<Annotation>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn annotations<VALUE: Into<Option<Vec<Annotation>>>>(
&mut self,
value: VALUE
) -> &mut Self
A list of annotations with timestamps
sourcepub fn depends<VALUE: Into<Option<Vec<Uuid>>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn depends<VALUE: Into<Option<Vec<Uuid>>>>(
&mut self,
value: VALUE
) -> &mut Self
The uuids of other tasks which have to be completed before this one becomes unblocked.
sourcepub fn due<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn due<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
The due date of the task
sourcepub fn end<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn end<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
When the task was last deleted or completed
sourcepub fn imask<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
pub fn imask<VALUE: Into<Option<i64>>>(&mut self, value: VALUE) -> &mut Self
The imask is used internally for recurrence
sourcepub fn mask<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn mask<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The mask is used internally for recurrence
sourcepub fn modified<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn modified<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
When the task was last modified
sourcepub fn parent<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
pub fn parent<VALUE: Into<Option<Uuid>>>(&mut self, value: VALUE) -> &mut Self
A task can have a parent task
sourcepub fn priority<VALUE: Into<Option<TaskPriority>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn priority<VALUE: Into<Option<TaskPriority>>>(
&mut self,
value: VALUE
) -> &mut Self
The priority of the task
sourcepub fn project<VALUE: Into<Option<Project>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn project<VALUE: Into<Option<Project>>>(
&mut self,
value: VALUE
) -> &mut Self
A task can be part of a project. Typically of the form “project.subproject.subsubproject”
sourcepub fn recur<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn recur<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The timespan after which this task should recur
sourcepub fn scheduled<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn scheduled<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
When the task becomes ready
sourcepub fn start<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn start<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
When the task becomes active
The tags associated with the task
sourcepub fn until<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn until<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
When the recurrence stops
sourcepub fn wait<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
pub fn wait<VALUE: Into<Option<Date>>>(&mut self, value: VALUE) -> &mut Self
This hides the task until the wait date
Trait Implementations
sourceimpl Clone for TaskBuilder
impl Clone for TaskBuilder
sourcefn clone(&self) -> TaskBuilder
fn clone(&self) -> TaskBuilder
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more