pub struct PlaceOpeningHoursPeriod {
pub open: PlaceOpeningHoursPeriodDetail,
pub close: Option<PlaceOpeningHoursPeriodDetail>,
}
Expand description
An object describing the opening hours of a place.
Fields§
§open: PlaceOpeningHoursPeriodDetail
Contains a pair of day and time objects describing when the place opens.
See PlaceOpeningHoursPeriodDetail for more information.
close: Option<PlaceOpeningHoursPeriodDetail>
May contain a pair of day and time objects describing when the place closes. If a place is always open, the close section will be missing from the response. Clients can rely on always-open being represented as an open period containing day with value 0 and time with value 0000, and no close.
See PlaceOpeningHoursPeriodDetail for more information.
Trait Implementations§
source§impl Clone for PlaceOpeningHoursPeriod
impl Clone for PlaceOpeningHoursPeriod
source§fn clone(&self) -> PlaceOpeningHoursPeriod
fn clone(&self) -> PlaceOpeningHoursPeriod
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 PlaceOpeningHoursPeriod
impl Debug for PlaceOpeningHoursPeriod
source§impl<'de> Deserialize<'de> for PlaceOpeningHoursPeriod
impl<'de> Deserialize<'de> for PlaceOpeningHoursPeriod
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 FromStr for PlaceOpeningHoursPeriod
impl FromStr for PlaceOpeningHoursPeriod
source§impl Hash for PlaceOpeningHoursPeriod
impl Hash for PlaceOpeningHoursPeriod
source§impl PartialEq<PlaceOpeningHoursPeriod> for PlaceOpeningHoursPeriod
impl PartialEq<PlaceOpeningHoursPeriod> for PlaceOpeningHoursPeriod
source§fn eq(&self, other: &PlaceOpeningHoursPeriod) -> bool
fn eq(&self, other: &PlaceOpeningHoursPeriod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PlaceOpeningHoursPeriod
impl Serialize for PlaceOpeningHoursPeriod
impl Eq for PlaceOpeningHoursPeriod
impl StructuralEq for PlaceOpeningHoursPeriod
impl StructuralPartialEq for PlaceOpeningHoursPeriod
Auto Trait Implementations§
impl RefUnwindSafe for PlaceOpeningHoursPeriod
impl Send for PlaceOpeningHoursPeriod
impl Sync for PlaceOpeningHoursPeriod
impl Unpin for PlaceOpeningHoursPeriod
impl UnwindSafe for PlaceOpeningHoursPeriod
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.