Struct tasklib::TaskBuilder

source ·
pub struct TaskBuilder { /* private fields */ }

Implementations§

source§

impl TaskBuilder

source

pub fn id(self, id: usize) -> Self

source

pub fn uuid(self, uuid: &str) -> Self

source

pub fn description<T: ToString>(self, description: T) -> Self

source

pub fn entry(self, entry: DateTime<Utc>) -> Self

source

pub fn start(self, start: DateTime<Utc>) -> Self

source

pub fn end(self, end: DateTime<Utc>) -> Self

source

pub fn modified(self, modified: DateTime<Utc>) -> Self

source

pub fn status(self, status: Status) -> Self

source

pub fn tag(self, tag: String) -> Self

source

pub fn tags<T: ToString>(self, tags: Vec<T>) -> Self

source

pub fn annotations(self, annotations: Vec<Annotation>) -> Self

source

pub fn priority(self, priority: String) -> Self

source

pub fn project<T: ToString>(self, project: T) -> Self

source

pub fn wait(self, wait: DateTime<Utc>) -> Self

source

pub fn scheduled(self, scheduled: DateTime<Utc>) -> Self

source

pub fn recur(self, recur: Duration) -> Self

source

pub fn mask(self, mask: String) -> Self

source

pub fn imask(self, imask: f64) -> Self

source

pub fn parent(self, parent: &str) -> Self

source

pub fn urgency(self, urgency: f64) -> Self

source

pub fn uda(self, name: String, uda: UdaValue) -> Self

source§

impl TaskBuilder

source

pub fn new() -> Self

source

pub fn build(self) -> Task

Trait Implementations§

source§

impl Debug for TaskBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TaskBuilder

source§

fn default() -> TaskBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.