pub struct BackOfHouseBuilder { /* private fields */ }Expand description
Builder for back-of-house location, reservation-type, time-window, and full-day provider filters.
Implementations§
Source§impl BackOfHouseBuilder
impl BackOfHouseBuilder
Sourcepub fn location(self, location: LocationId) -> Self
pub fn location(self, location: LocationId) -> Self
Scopes the Gingr request to a provider location identifier.
Sourcepub fn reservation_type_id(self, id: TypeId) -> Self
pub fn reservation_type_id(self, id: TypeId) -> Self
Adds a Gingr reservation-type identifier as a provider filter.
Sourcepub fn minutes_future(self, minutes: MinutesFuture) -> Self
pub fn minutes_future(self, minutes: MinutesFuture) -> Self
Limits back-of-house results to a future provider time window.
Sourcepub fn full_day(self, full_day: bool) -> Self
pub fn full_day(self, full_day: bool) -> Self
Requests Gingr full-day back-of-house records when the provider supports that flag.
Sourcepub fn build(self) -> BackOfHouse
pub fn build(self) -> BackOfHouse
Finalizes the provider request descriptor after required fields are present and wrappers have validated local invariants.
Trait Implementations§
Source§impl Clone for BackOfHouseBuilder
impl Clone for BackOfHouseBuilder
Source§fn clone(&self) -> BackOfHouseBuilder
fn clone(&self) -> BackOfHouseBuilder
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 BackOfHouseBuilder
impl Debug for BackOfHouseBuilder
Source§impl Default for BackOfHouseBuilder
impl Default for BackOfHouseBuilder
Source§fn default() -> BackOfHouseBuilder
fn default() -> BackOfHouseBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackOfHouseBuilder
impl RefUnwindSafe for BackOfHouseBuilder
impl Send for BackOfHouseBuilder
impl Sync for BackOfHouseBuilder
impl Unpin for BackOfHouseBuilder
impl UnsafeUnpin for BackOfHouseBuilder
impl UnwindSafe for BackOfHouseBuilder
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