pub struct TaskBuilder<Version: TaskWarriorVersion + 'static> { /* private fields */ }
Expand description
Builder for Task
.
Implementations§
Source§impl<Version: TaskWarriorVersion + 'static + Clone> TaskBuilder<Version>
impl<Version: TaskWarriorVersion + 'static + Clone> TaskBuilder<Version>
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<f64>>>(&mut self, value: VALUE) -> &mut Self
pub fn imask<VALUE: Into<Option<f64>>>(&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
Sourcepub fn urgency<VALUE: Into<Option<Urgency>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn urgency<VALUE: Into<Option<Urgency>>>( &mut self, value: VALUE, ) -> &mut Self
This contains the urgency of the task
Trait Implementations§
Source§impl<Version: Clone + TaskWarriorVersion + 'static> Clone for TaskBuilder<Version>
impl<Version: Clone + TaskWarriorVersion + 'static> Clone for TaskBuilder<Version>
Source§fn clone(&self) -> TaskBuilder<Version>
fn clone(&self) -> TaskBuilder<Version>
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more