pub struct SearchFiltersBuilder { /* private fields */ }Expand description
Builder for provider reservation filters such as date, status flags, type IDs, and animal IDs.
Implementations§
Source§impl SearchFiltersBuilder
impl SearchFiltersBuilder
Sourcepub fn from_date(self, date: IsoDate) -> Self
pub fn from_date(self, date: IsoDate) -> Self
Sets the inclusive provider start date sent to Gingr.
Sourcepub fn to_date(self, date: IsoDate) -> Self
pub fn to_date(self, date: IsoDate) -> Self
Sets the inclusive provider end date sent to Gingr.
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 animal_id(self, id: AnimalId) -> Self
pub fn animal_id(self, id: AnimalId) -> Self
Adds a Gingr animal identifier as a provider filter.
Sourcepub fn cancelled_only(self, value: bool) -> Self
pub fn cancelled_only(self, value: bool) -> Self
Requests only provider records Gingr marks as cancelled.
Sourcepub fn confirmed_only(self, value: bool) -> Self
pub fn confirmed_only(self, value: bool) -> Self
Requests only provider records Gingr marks as confirmed.
Sourcepub fn completed_only(self, value: bool) -> Self
pub fn completed_only(self, value: bool) -> Self
Requests only provider records Gingr marks as completed.
Sourcepub fn limit(self, limit: Limit) -> Self
pub fn limit(self, limit: Limit) -> Self
Sets the provider result limit so automation does not imply unbounded source coverage.
Sourcepub fn build(self) -> SearchFilters
pub fn build(self) -> SearchFilters
Finalizes the provider request descriptor after required fields are present and wrappers have validated local invariants.
Trait Implementations§
Source§impl Clone for SearchFiltersBuilder
impl Clone for SearchFiltersBuilder
Source§fn clone(&self) -> SearchFiltersBuilder
fn clone(&self) -> SearchFiltersBuilder
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 SearchFiltersBuilder
impl Debug for SearchFiltersBuilder
Source§impl Default for SearchFiltersBuilder
impl Default for SearchFiltersBuilder
Source§fn default() -> SearchFiltersBuilder
fn default() -> SearchFiltersBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchFiltersBuilder
impl RefUnwindSafe for SearchFiltersBuilder
impl Send for SearchFiltersBuilder
impl Sync for SearchFiltersBuilder
impl Unpin for SearchFiltersBuilder
impl UnsafeUnpin for SearchFiltersBuilder
impl UnwindSafe for SearchFiltersBuilder
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