Struct google_maps::places::place_opening_hours_period_detail::PlaceOpeningHoursPeriodDetail
source · pub struct PlaceOpeningHoursPeriodDetail {
pub day: Weekday,
pub time: NaiveTime,
pub date: Option<NaiveDate>,
pub truncated: Option<bool>,
}
Expand description
An object describing the opening hours of a place.
Fields§
§day: Weekday
A number from 0–6, corresponding to the days of the week, starting on Sunday. For example, 2 means Tuesday.
time: NaiveTime
May contain a time of day in 24-hour hhmm format. Values are in the range 0000–2359. The time will be reported in the place’s time zone.
date: Option<NaiveDate>
A date expressed in RFC3339 format in the local timezone for the place, for example 2010-12-31.
truncated: Option<bool>
True if a given period was truncated due to a seven-day cutoff, where the period starts before midnight on the date of the request and/or ends at or after midnight on the last day. This property indicates that the period for open or close can extend past this seven-day cutoff.
Trait Implementations§
source§impl Clone for PlaceOpeningHoursPeriodDetail
impl Clone for PlaceOpeningHoursPeriodDetail
source§fn clone(&self) -> PlaceOpeningHoursPeriodDetail
fn clone(&self) -> PlaceOpeningHoursPeriodDetail
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<'de> Deserialize<'de> for PlaceOpeningHoursPeriodDetail
impl<'de> Deserialize<'de> for PlaceOpeningHoursPeriodDetail
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PlaceOpeningHoursPeriodDetail
impl Hash for PlaceOpeningHoursPeriodDetail
source§impl PartialEq<PlaceOpeningHoursPeriodDetail> for PlaceOpeningHoursPeriodDetail
impl PartialEq<PlaceOpeningHoursPeriodDetail> for PlaceOpeningHoursPeriodDetail
source§fn eq(&self, other: &PlaceOpeningHoursPeriodDetail) -> bool
fn eq(&self, other: &PlaceOpeningHoursPeriodDetail) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PlaceOpeningHoursPeriodDetail
impl StructuralEq for PlaceOpeningHoursPeriodDetail
impl StructuralPartialEq for PlaceOpeningHoursPeriodDetail
Auto Trait Implementations§
impl RefUnwindSafe for PlaceOpeningHoursPeriodDetail
impl Send for PlaceOpeningHoursPeriodDetail
impl Sync for PlaceOpeningHoursPeriodDetail
impl Unpin for PlaceOpeningHoursPeriodDetail
impl UnwindSafe for PlaceOpeningHoursPeriodDetail
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.