pub struct Timesheet<'cl> { /* private fields */ }Implementations§
Source§impl<'cl> Timesheet<'cl>
impl<'cl> Timesheet<'cl>
pub fn new(patched_timesheet: &'cl PatchedTimesheet) -> Self
pub fn get_patched_timesheet(&'cl self) -> &'cl PatchedTimesheet
pub fn event_at_time( &mut self, start: DateTime<Utc>, event_ref: EventRef, ) -> Option<EventRef>
pub fn events(&self) -> BTreeMap<DateTime<Utc>, BTreeSet<Tag>>
pub fn segments(&self) -> Vec<Segment>
Trait Implementations§
Source§impl PartialEq<BTreeMap<DateTime<Utc>, BTreeSet<String>>> for Timesheet<'_>
impl PartialEq<BTreeMap<DateTime<Utc>, BTreeSet<String>>> for Timesheet<'_>
impl Eq for Timesheet<'_>
Auto Trait Implementations§
impl<'cl> Freeze for Timesheet<'cl>
impl<'cl> RefUnwindSafe for Timesheet<'cl>
impl<'cl> Send for Timesheet<'cl>
impl<'cl> Sync for Timesheet<'cl>
impl<'cl> Unpin for Timesheet<'cl>
impl<'cl> UnwindSafe for Timesheet<'cl>
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