pub struct Workday {
pub id: i32,
pub date: NaiveDate,
pub start: NaiveDateTime,
pub end: Option<NaiveDateTime>,
}Expand description
One day’s work session. Timestamps are local time; end: None means the
session is still open.
Fields§
§id: i32Database primary key.
date: NaiveDateCalendar date; unique per row.
start: NaiveDateTimeWhen the session began.
end: Option<NaiveDateTime>When the session ended; None while it is open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workday
impl RefUnwindSafe for Workday
impl Send for Workday
impl Sync for Workday
impl Unpin for Workday
impl UnsafeUnpin for Workday
impl UnwindSafe for Workday
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