Struct google_maps::places::place_special_day::PlaceSpecialDay
source · pub struct PlaceSpecialDay {
pub date: Option<NaiveDate>,
pub exceptional_hours: Option<bool>,
}
Expand description
An object describing the opening hours of a place on special days or holidays.
Fields§
§date: Option<NaiveDate>
A date expressed in RFC3339 format in the local timezone for the place, for example 2010-12-31.
exceptional_hours: Option<bool>
True if there are exceptional hours for this day. If true
, this means
that there is at least one exception for this day. Exceptions cause
different values to occur in the subfields of current_opening_hours
and secondary_opening_hours
such as periods
, weekday_text
,
open_now
. The exceptions apply to the hours, and the hours are used to
generate the other fields.
Trait Implementations§
source§impl Clone for PlaceSpecialDay
impl Clone for PlaceSpecialDay
source§fn clone(&self) -> PlaceSpecialDay
fn clone(&self) -> PlaceSpecialDay
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 PlaceSpecialDay
impl Debug for PlaceSpecialDay
source§impl<'de> Deserialize<'de> for PlaceSpecialDay
impl<'de> Deserialize<'de> for PlaceSpecialDay
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 PlaceSpecialDay
impl FromStr for PlaceSpecialDay
source§impl Hash for PlaceSpecialDay
impl Hash for PlaceSpecialDay
source§impl Ord for PlaceSpecialDay
impl Ord for PlaceSpecialDay
source§fn cmp(&self, other: &PlaceSpecialDay) -> Ordering
fn cmp(&self, other: &PlaceSpecialDay) -> 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<PlaceSpecialDay> for PlaceSpecialDay
impl PartialEq<PlaceSpecialDay> for PlaceSpecialDay
source§fn eq(&self, other: &PlaceSpecialDay) -> bool
fn eq(&self, other: &PlaceSpecialDay) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PlaceSpecialDay> for PlaceSpecialDay
impl PartialOrd<PlaceSpecialDay> for PlaceSpecialDay
source§fn partial_cmp(&self, other: &PlaceSpecialDay) -> Option<Ordering>
fn partial_cmp(&self, other: &PlaceSpecialDay) -> 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 PlaceSpecialDay
impl Serialize for PlaceSpecialDay
impl Eq for PlaceSpecialDay
impl StructuralEq for PlaceSpecialDay
impl StructuralPartialEq for PlaceSpecialDay
Auto Trait Implementations§
impl RefUnwindSafe for PlaceSpecialDay
impl Send for PlaceSpecialDay
impl Sync for PlaceSpecialDay
impl Unpin for PlaceSpecialDay
impl UnwindSafe for PlaceSpecialDay
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.