[−][src]Struct rtd::model::Task
Fields
id: u32
title: String
done: bool
today: String
list: String
priority: Priority
created_at: OffsetDateTime
completed_at: Option<OffsetDateTime>
due_date: Option<SmartDate>
Implementations
impl Task
[src]
pub fn new(
title: String,
list: String,
priority: Priority,
due_date: Option<SmartDate>
) -> Task
[src]
title: String,
list: String,
priority: Priority,
due_date: Option<SmartDate>
) -> Task
pub fn create(
id: u32,
title: String,
done: bool,
list: String,
priority: Priority,
today: String,
created_at: OffsetDateTime,
completed_at: Option<OffsetDateTime>,
due_date: Option<SmartDate>
) -> Task
[src]
id: u32,
title: String,
done: bool,
list: String,
priority: Priority,
today: String,
created_at: OffsetDateTime,
completed_at: Option<OffsetDateTime>,
due_date: Option<SmartDate>
) -> Task
pub fn mark_completed(&mut self)
[src]
pub fn mark_uncompleted(&mut self)
[src]
pub fn is_in_list(&self, list: &str) -> bool
[src]
pub fn mark_for_today(&mut self)
[src]
pub fn remove_from_today(&mut self)
[src]
pub fn is_marked_for_today(&self) -> bool
[src]
pub fn is_due_today(&self) -> bool
[src]
pub fn is_overdue(&self) -> bool
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
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>,