pub struct Event {
pub at: DateTime<Local>,
pub id: u32,
pub title: String,
pub kind: Kind,
pub tags: Vec<String>,
pub what: What,
pub source: usize,
pub worked: Duration,
pub comments: usize,
}Expand description
One interaction with an entry.
Fields§
§at: DateTime<Local>When it happened; for a session, when it started that day.
id: u32The entry’s id.
title: StringThe entry’s title.
kind: KindTask, note or decision.
The entry’s tags.
what: WhatWhat happened.
source: usizeWhich brain it’s from, as the index of its calendar in Calendar::merge; 0 otherwise.
worked: DurationTime worked on the entry that day, up to now while it runs.
comments: usizeComments written on the entry that day.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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