pub struct BusinessHoursPeriod {
pub day_of_week: Option<DayOfWeek>,
pub end_local_time: Option<String>,
pub start_local_time: Option<String>,
}
Expand description
The hours of operation for a location.
Fields§
§day_of_week: Option<DayOfWeek>
The day of the week for this time period.
end_local_time: Option<String>
The end time of a business hours period, specified in local time using partial-time RFC 3339
format. For example, 21:00:00
for a period ending at 9:00 in the evening. Note that the
seconds value is always :00, but it is appended for conformance to the RFC.
start_local_time: Option<String>
The start time of a business hours period, specified in local time using partial-time RFC
3339 format. For example, 21:00:00
for a period ending at 9:00 in the evening. Note that
the seconds value is always :00, but it is appended for conformance to the RFC.
Trait Implementations§
Source§impl Clone for BusinessHoursPeriod
impl Clone for BusinessHoursPeriod
Source§fn clone(&self) -> BusinessHoursPeriod
fn clone(&self) -> BusinessHoursPeriod
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BusinessHoursPeriod
impl Debug for BusinessHoursPeriod
Source§impl Default for BusinessHoursPeriod
impl Default for BusinessHoursPeriod
Source§fn default() -> BusinessHoursPeriod
fn default() -> BusinessHoursPeriod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessHoursPeriod
impl<'de> Deserialize<'de> for BusinessHoursPeriod
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 PartialEq for BusinessHoursPeriod
impl PartialEq for BusinessHoursPeriod
Source§impl Serialize for BusinessHoursPeriod
impl Serialize for BusinessHoursPeriod
impl Eq for BusinessHoursPeriod
impl StructuralPartialEq for BusinessHoursPeriod
Auto Trait Implementations§
impl Freeze for BusinessHoursPeriod
impl RefUnwindSafe for BusinessHoursPeriod
impl Send for BusinessHoursPeriod
impl Sync for BusinessHoursPeriod
impl Unpin for BusinessHoursPeriod
impl UnwindSafe for BusinessHoursPeriod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.