Enum google_api_proto::google::maps::places::v1::place::opening_hours::SecondaryHoursType
source · #[repr(i32)]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
A type used to identify the type of secondary hours.
Variants§
Unspecified = 0
Default value when secondary hour type is not specified.
DriveThrough = 1
The drive-through hour for banks, restaurants, or pharmacies.
HappyHour = 2
The happy hour.
Delivery = 3
The delivery hour.
Takeout = 4
The takeout hour.
Kitchen = 5
The kitchen hour.
Breakfast = 6
The breakfast hour.
Lunch = 7
The lunch hour.
Dinner = 8
The dinner hour.
Brunch = 9
The brunch hour.
Pickup = 10
The pickup hour.
Access = 11
The access hours for storage places.
SeniorHours = 12
The special hours for seniors.
OnlineServiceHours = 13
The online service hours.
Implementations§
source§impl SecondaryHoursType
impl SecondaryHoursType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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 From<SecondaryHoursType> for i32
impl From<SecondaryHoursType> for i32
source§fn from(value: SecondaryHoursType) -> i32
fn from(value: SecondaryHoursType) -> i32
Converts to this type from the input type.
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 TryFrom<i32> for SecondaryHoursType
impl TryFrom<i32> for SecondaryHoursType
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SecondaryHoursType, DecodeError>
fn try_from(value: i32) -> Result<SecondaryHoursType, DecodeError>
Performs the conversion.
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request