Struct square_api_client::models::BusinessHoursPeriod
source · [−]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
sourceimpl Clone for BusinessHoursPeriod
impl Clone for BusinessHoursPeriod
sourcefn clone(&self) -> BusinessHoursPeriod
fn clone(&self) -> BusinessHoursPeriod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BusinessHoursPeriod
impl Debug for BusinessHoursPeriod
sourceimpl Default for BusinessHoursPeriod
impl Default for BusinessHoursPeriod
sourcefn default() -> BusinessHoursPeriod
fn default() -> BusinessHoursPeriod
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BusinessHoursPeriod
impl<'de> Deserialize<'de> for BusinessHoursPeriod
sourcefn 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
sourceimpl PartialEq<BusinessHoursPeriod> for BusinessHoursPeriod
impl PartialEq<BusinessHoursPeriod> for BusinessHoursPeriod
sourcefn eq(&self, other: &BusinessHoursPeriod) -> bool
fn eq(&self, other: &BusinessHoursPeriod) -> bool
sourceimpl Serialize for BusinessHoursPeriod
impl Serialize for BusinessHoursPeriod
impl Eq for BusinessHoursPeriod
impl StructuralEq for BusinessHoursPeriod
impl StructuralPartialEq for BusinessHoursPeriod
Auto Trait Implementations
impl RefUnwindSafe for BusinessHoursPeriod
impl Send for BusinessHoursPeriod
impl Sync for BusinessHoursPeriod
impl Unpin for BusinessHoursPeriod
impl UnwindSafe for BusinessHoursPeriod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.