#[non_exhaustive]#[repr(u8)]pub enum SecondaryHoursType {
DriveThrough = 0,
HappyHour = 1,
Delivery = 2,
Takeout = 3,
Kitchen = 4,
Breakfast = 5,
Lunch = 6,
Dinner = 7,
Brunch = 8,
Pickup = 9,
SeniorHours = 10,
}
Expand description
A type string used to identify the type of secondary hours (for example,
DRIVE_THROUGH
, HAPPY_HOUR
, DELIVERY
, TAKEOUT
, KITCHEN
,
BREAKFAST
, LUNCH
, DINNER
, BRUNCH
, PICKUP
, SENIOR_HOURS
). Set for
secondary_opening_hours
only.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DriveThrough = 0
HappyHour = 1
Delivery = 2
Takeout = 3
Kitchen = 4
Breakfast = 5
Lunch = 6
Dinner = 7
Brunch = 8
Pickup = 9
SeniorHours = 10
Implementations§
Trait Implementations§
source§impl Clone for SecondaryHoursType
impl Clone for SecondaryHoursType
source§fn clone(&self) -> SecondaryHoursType
fn clone(&self) -> SecondaryHoursType
Returns a copy 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 SecondaryHoursType
impl Debug for SecondaryHoursType
source§impl Default for SecondaryHoursType
impl Default for SecondaryHoursType
source§fn default() -> SecondaryHoursType
fn default() -> SecondaryHoursType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecondaryHoursType
impl<'de> Deserialize<'de> for SecondaryHoursType
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Display for SecondaryHoursType
impl Display for SecondaryHoursType
source§impl From<&SecondaryHoursType> for &str
impl From<&SecondaryHoursType> for &str
source§fn from(hours_type: &SecondaryHoursType) -> Self
fn from(hours_type: &SecondaryHoursType) -> Self
Converts a SecondaryHoursType
enum to a String
that contains a
secondary hours type
code.
source§impl From<&SecondaryHoursType> for String
impl From<&SecondaryHoursType> for String
source§fn from(secondary_hours_type: &SecondaryHoursType) -> Self
fn from(secondary_hours_type: &SecondaryHoursType) -> Self
Converts a SecondaryHoursType
enum to a String
that contains a
secondary hours type
code.
source§impl FromStr for SecondaryHoursType
impl FromStr for SecondaryHoursType
source§impl Hash for SecondaryHoursType
impl Hash for SecondaryHoursType
source§impl Ord for SecondaryHoursType
impl Ord for SecondaryHoursType
source§fn cmp(&self, other: &SecondaryHoursType) -> Ordering
fn cmp(&self, other: &SecondaryHoursType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SecondaryHoursType
impl PartialEq for SecondaryHoursType
source§fn eq(&self, other: &SecondaryHoursType) -> bool
fn eq(&self, other: &SecondaryHoursType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SecondaryHoursType
impl PartialOrd for SecondaryHoursType
source§fn partial_cmp(&self, other: &SecondaryHoursType) -> Option<Ordering>
fn partial_cmp(&self, other: &SecondaryHoursType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SecondaryHoursType
impl Serialize for SecondaryHoursType
source§impl TryFrom<&str> for SecondaryHoursType
impl TryFrom<&str> 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
Mutably borrows from an owned value. Read more