pub struct Break {
pub id: Option<i64>,
pub date: NaiveDate,
pub start: NaiveDateTime,
pub end: NaiveDateTime,
pub duration: Duration,
pub reason: Option<String>,
pub created_at: Option<NaiveDateTime>,
}Expand description
Represents a manually added break period.
Manual breaks are user-defined periods that complement automatic pause detection to provide more accurate productivity calculations. Unlike automatic pauses, breaks are intentionally added to represent planned rest periods.
Fields§
§id: Option<i64>Unique identifier for the break record
date: NaiveDateDate this break belongs to
start: NaiveDateTimeStart time of the break
end: NaiveDateTimeEnd time of the break
duration: DurationDuration of the break in minutes
reason: Option<String>Optional reason for the break
created_at: Option<NaiveDateTime>When this break record was created
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Break
impl RefUnwindSafe for Break
impl Send for Break
impl Sync for Break
impl Unpin for Break
impl UnsafeUnpin for Break
impl UnwindSafe for Break
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