pub struct Task {
pub item: Item,
pub due_date: Option<NaiveDate>,
pub reminder: Option<DateTime<Utc>>,
pub recurrence: Option<String>,
pub project: Option<String>,
pub source: Option<String>,
}Expand description
A Jot task extends joy-core::Item with recurrence and task-specific fields. Uses serde flatten to inherit all base Item fields.
Fields§
§item: Item§due_date: Option<NaiveDate>Due date (date only, no time)
reminder: Option<DateTime<Utc>>Reminder datetime
recurrence: Option<String>Recurrence rule (RFC 5545 RRULE format) e.g. “FREQ=WEEKLY;BYDAY=MO,WE,FR” or “FREQ=DAILY;INTERVAL=2”
project: Option<String>Project this task belongs to
source: Option<String>Source reference for dispatched tasks (e.g. “joy:acme/product:JOY-002A”)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more