pub struct TimeclockReportBuilder { /* private fields */ }Expand description
Builder for Gingr timeclock report filters.
Implementations§
Source§impl TimeclockReportBuilder
impl TimeclockReportBuilder
Sourcepub fn date_range(self, start_date: Date, end_date: Date) -> Self
pub fn date_range(self, start_date: Date, end_date: Date) -> Self
Scopes the labor report to a provider date range.
Sourcepub fn location_id(self, location_id: LocationId) -> Self
pub fn location_id(self, location_id: LocationId) -> Self
Scopes the Gingr endpoint request to a location.
Sourcepub fn include_deleted(self, include_deleted: bool) -> Self
pub fn include_deleted(self, include_deleted: bool) -> Self
Includes deleted provider records when Gingr supports that filter.
Sourcepub fn include_clocked_in(self, include_clocked_in: bool) -> Self
pub fn include_clocked_in(self, include_clocked_in: bool) -> Self
Includes currently clocked-in users in the labor report.
Sourcepub fn build(self) -> Result<TimeclockReport>
pub fn build(self) -> Result<TimeclockReport>
Finalizes the provider request descriptor after required fields are present and wrappers have validated local invariants.
Trait Implementations§
Source§impl Clone for TimeclockReportBuilder
impl Clone for TimeclockReportBuilder
Source§fn clone(&self) -> TimeclockReportBuilder
fn clone(&self) -> TimeclockReportBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeclockReportBuilder
impl Debug for TimeclockReportBuilder
Source§impl Default for TimeclockReportBuilder
impl Default for TimeclockReportBuilder
Source§fn default() -> TimeclockReportBuilder
fn default() -> TimeclockReportBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TimeclockReportBuilder
impl RefUnwindSafe for TimeclockReportBuilder
impl Send for TimeclockReportBuilder
impl Sync for TimeclockReportBuilder
impl Unpin for TimeclockReportBuilder
impl UnsafeUnpin for TimeclockReportBuilder
impl UnwindSafe for TimeclockReportBuilder
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