#[non_exhaustive]#[repr(u8)]pub enum SecondaryHoursType {
Show 14 variants
Unspecified = 0,
DriveThrough = 1,
HappyHour = 2,
Delivery = 3,
Takeout = 4,
Kitchen = 5,
Breakfast = 6,
Lunch = 7,
Dinner = 8,
Brunch = 9,
Pickup = 10,
Access = 11,
SeniorHours = 12,
OnlineServiceHours = 13,
}Expand description
Identifies the type of secondary hours for a place.
Secondary hours are different from a business’s main operating hours and provide specific information about specialized services or access times.
For example, a restaurant might have different hours for drive-through service versus dine-in service, or a pharmacy might have specific hours for prescription pickup versus general shopping.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified = 0
Default value when secondary hour type is not specified.
This is used as a fallback when the secondary hours type cannot be determined or is not provided in the API response.
DriveThrough = 1
Drive-through service hours for banks, restaurants, or pharmacies.
These hours indicate when customers can use drive-through services, which may differ from regular business hours. Common for fast food restaurants, banks, and pharmacies that offer drive-through windows.
HappyHour = 2
Happy hour service times.
Special pricing or promotional hours typically offered by bars, restaurants, or entertainment venues. These hours usually feature discounted drinks, food, or other promotions.
Delivery = 3
Delivery service availability hours.
Hours when the business offers delivery services, which may be more limited than regular operating hours due to staffing or logistical constraints.
Takeout = 4
Takeout service availability hours.
Hours when customers can order food for pickup, which may extend beyond regular dining hours or be available when dine-in service is not offered.
Kitchen = 5
Kitchen operating hours.
Hours when the kitchen is actively preparing food, which may be shorter than the restaurant’s overall operating hours. Useful for establishments that stay open for drinks after kitchen closure.
Breakfast = 6
Breakfast service hours.
Specific hours when breakfast items are available, which may be a subset of the restaurant’s total operating hours.
Lunch = 7
Lunch service hours.
Specific hours when lunch items are available, which may differ from overall restaurant hours or other meal service times.
Dinner = 8
Dinner service hours.
Specific hours when dinner items are available, which may be later than lunch service and represent the main evening dining period.
Brunch = 9
Brunch service hours.
Special weekend or holiday hours when brunch items are available, typically combining breakfast and lunch offerings during late morning hours.
Pickup = 10
Pickup service availability hours.
Hours when customers can collect pre-ordered items, which may differ from regular business hours and could extend beyond normal operating times.
Access = 11
Access hours for storage or specialized facilities.
Hours when customers can access storage units, lockers, or other facilities that may have different access times than the main business office hours.
SeniorHours = 12
Special hours designated for senior citizens.
Dedicated time periods when businesses offer special services, discounts, or priority access for senior customers, often during less busy periods.
OnlineServiceHours = 13
Online service availability hours.
Hours when online services, customer support, or digital platforms are actively staffed and available, which may differ from physical location hours.
Implementations§
Source§impl SecondaryHoursType
impl SecondaryHoursType
Sourcepub const fn is_food_service(&self) -> bool
pub const fn is_food_service(&self) -> bool
Returns whether this is a food service related hours type.
Used to identify secondary hours that relate to food preparation or service, which can be useful for filtering or categorizing different types of hours.
Sourcepub const fn is_customer_service(&self) -> bool
pub const fn is_customer_service(&self) -> bool
Returns whether this is a customer service related hours type.
Used to identify secondary hours that relate to customer-facing services rather than operational or internal business functions.
Sourcepub const fn is_promotional(&self) -> bool
pub const fn is_promotional(&self) -> bool
Returns whether this represents special promotional hours.
Used to identify hours that are primarily for promotional or special pricing purposes rather than standard service availability.
Sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
Returns a human-readable description of this hours type.
Provides a user-friendly description that can be displayed in UIs or used for logging and debugging purposes.
Trait Implementations§
Source§impl AsRef<str> for SecondaryHoursType
impl AsRef<str> for SecondaryHoursType
Source§impl Clone for SecondaryHoursType
impl Clone for SecondaryHoursType
Source§fn clone(&self) -> SecondaryHoursType
fn clone(&self) -> SecondaryHoursType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecondaryHoursType
impl Debug for SecondaryHoursType
Source§impl Default for SecondaryHoursType
impl Default for SecondaryHoursType
Source§fn default() -> SecondaryHoursType
fn default() -> SecondaryHoursType
Source§impl<'de> Deserialize<'de> for SecondaryHoursType
impl<'de> Deserialize<'de> for SecondaryHoursType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for SecondaryHoursType
impl Display for SecondaryHoursType
Source§impl<'_derivative_strum> From<&'_derivative_strum SecondaryHoursType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum SecondaryHoursType> for &'static str
Source§fn from(x: &'_derivative_strum SecondaryHoursType) -> &'static str
fn from(x: &'_derivative_strum SecondaryHoursType) -> &'static str
Source§impl From<SecondaryHoursType> for &'static str
impl From<SecondaryHoursType> for &'static str
Source§fn from(x: SecondaryHoursType) -> &'static str
fn from(x: SecondaryHoursType) -> &'static str
Source§impl FromStr for SecondaryHoursType
impl FromStr for SecondaryHoursType
Source§impl Hash for SecondaryHoursType
impl Hash for SecondaryHoursType
Source§impl PartialEq for SecondaryHoursType
impl PartialEq for SecondaryHoursType
Source§impl Serialize for SecondaryHoursType
impl Serialize for SecondaryHoursType
Source§impl TryFrom<&str> for SecondaryHoursType
impl TryFrom<&str> for SecondaryHoursType
impl Copy for SecondaryHoursType
impl Eq for SecondaryHoursType
impl StructuralPartialEq for SecondaryHoursType
Auto Trait Implementations§
impl Freeze for SecondaryHoursType
impl RefUnwindSafe for SecondaryHoursType
impl Send for SecondaryHoursType
impl Sync for SecondaryHoursType
impl Unpin for SecondaryHoursType
impl UnwindSafe for SecondaryHoursType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.