Struct squareup::models::CatalogAvailabilityPeriod
source · pub struct CatalogAvailabilityPeriod {
pub start_local_time: Option<String>,
pub end_local_time: Option<String>,
pub day_of_week: Option<DayOfWeek>,
}Expand description
Represents a time period of availability.
Fields§
§start_local_time: Option<String>The start time of an availability period, specified in local time using partial-time RFC 3339 format. For example, 8:30:00 for a period starting at 8:30 in the morning. Note that the seconds value is always :00, but it is appended for conformance to the RFC.
end_local_time: Option<String>The end time of an availability 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.
day_of_week: Option<DayOfWeek>The day of the week for this availability period.
Trait Implementations§
source§impl Clone for CatalogAvailabilityPeriod
impl Clone for CatalogAvailabilityPeriod
source§fn clone(&self) -> CatalogAvailabilityPeriod
fn clone(&self) -> CatalogAvailabilityPeriod
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 CatalogAvailabilityPeriod
impl Debug for CatalogAvailabilityPeriod
source§impl Default for CatalogAvailabilityPeriod
impl Default for CatalogAvailabilityPeriod
source§fn default() -> CatalogAvailabilityPeriod
fn default() -> CatalogAvailabilityPeriod
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CatalogAvailabilityPeriod
impl<'de> Deserialize<'de> for CatalogAvailabilityPeriod
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 CatalogAvailabilityPeriod
impl PartialEq for CatalogAvailabilityPeriod
source§fn eq(&self, other: &CatalogAvailabilityPeriod) -> bool
fn eq(&self, other: &CatalogAvailabilityPeriod) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for CatalogAvailabilityPeriod
impl StructuralPartialEq for CatalogAvailabilityPeriod
Auto Trait Implementations§
impl RefUnwindSafe for CatalogAvailabilityPeriod
impl Send for CatalogAvailabilityPeriod
impl Sync for CatalogAvailabilityPeriod
impl Unpin for CatalogAvailabilityPeriod
impl UnwindSafe for CatalogAvailabilityPeriod
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.