[−][src]Struct task_hookrs::task::TaskBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
A list of annotations with timestamps
pub fn depends<VALUE: Into<Option<Vec<Uuid>>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
The priority of the task
pub fn project<VALUE: Into<Option<Project>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for TaskBuilder
[src]
fn clone(&self) -> TaskBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TaskBuilder
[src]
fn default() -> TaskBuilder
[src]
Auto Trait Implementations
impl Send for TaskBuilder
impl Sync for TaskBuilder
impl Unpin for TaskBuilder
impl UnwindSafe for TaskBuilder
impl RefUnwindSafe for TaskBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,