#[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,
Other(String),
}
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
DriveThrough = 0
HappyHour = 1
Delivery = 2
Takeout = 3
Kitchen = 4
Breakfast = 5
Lunch = 6
Dinner = 7
Brunch = 8
Pickup = 9
SeniorHours = 10
Other(String)
If the hours type is not recognized by
serde when reading data from
Google it will be assigned to this Other
variant.
As new types are added to Google Maps, they must also be added to this
crate. However, in the meantime, the Other
catch-all variant allows
serde
to read data from Google without producing an error until the
new variant added to this enum
.
Implementations§
Trait Implementations§
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<'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<'a> From<&'a SecondaryHoursType> for &'a str
impl<'a> From<&'a SecondaryHoursType> for &'a str
source§fn from(hours_type: &'a SecondaryHoursType) -> Self
fn from(hours_type: &'a 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,
source§impl PartialEq for SecondaryHoursType
impl PartialEq for SecondaryHoursType
source§fn eq(&self, other: &SecondaryHoursType) -> bool
fn eq(&self, other: &SecondaryHoursType) -> bool
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
self
and other
) and is used by the <=
operator. Read more