pub struct Interval {
pub start: NaiveDateTime,
pub end: NaiveDateTime,
pub seconds: i64,
}Expand description
One stretch of work between pauses.
Fields§
§start: NaiveDateTime§end: NaiveDateTime§seconds: i64Trait Implementations§
Source§impl From<&WorkInterval> for Interval
impl From<&WorkInterval> for Interval
Source§fn from(interval: &WorkInterval) -> Self
fn from(interval: &WorkInterval) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnsafeUnpin for Interval
impl UnwindSafe for Interval
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