pub struct BusinessOpeningHours {
pub time_zone_name: String,
pub opening_hours: Vec<BusinessOpeningHoursInterval>,
}Expand description
Describes the opening hours of a business.
Fields§
§time_zone_name: StringUnique name of the time zone for which the opening hours are defined
opening_hours: Vec<BusinessOpeningHoursInterval>List of time intervals describing business opening hours
Implementations§
Source§impl BusinessOpeningHours
impl BusinessOpeningHours
pub fn noskip(self) -> NoSkipBusinessOpeningHours
Source§impl BusinessOpeningHours
impl BusinessOpeningHours
pub fn new( time_zone_name: String, opening_hours: Vec<BusinessOpeningHoursInterval>, ) -> Self
Sourcepub fn get_time_zone_name<'a>(&'a self) -> &'a str
pub fn get_time_zone_name<'a>(&'a self) -> &'a str
Unique name of the time zone for which the opening hours are defined
Sourcepub fn set_time_zone_name<'a>(
&'a mut self,
time_zone_name: String,
) -> &'a mut Self
pub fn set_time_zone_name<'a>( &'a mut self, time_zone_name: String, ) -> &'a mut Self
Unique name of the time zone for which the opening hours are defined
Sourcepub fn get_opening_hours<'a>(&'a self) -> &'a Vec<BusinessOpeningHoursInterval>
pub fn get_opening_hours<'a>(&'a self) -> &'a Vec<BusinessOpeningHoursInterval>
List of time intervals describing business opening hours
Sourcepub fn set_opening_hours<'a>(
&'a mut self,
opening_hours: Vec<BusinessOpeningHoursInterval>,
) -> &'a mut Self
pub fn set_opening_hours<'a>( &'a mut self, opening_hours: Vec<BusinessOpeningHoursInterval>, ) -> &'a mut Self
List of time intervals describing business opening hours
Trait Implementations§
Source§impl Clone for BusinessOpeningHours
impl Clone for BusinessOpeningHours
Source§fn clone(&self) -> BusinessOpeningHours
fn clone(&self) -> BusinessOpeningHours
Returns a duplicate 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 BusinessOpeningHours
impl Debug for BusinessOpeningHours
Source§impl Default for BusinessOpeningHours
impl Default for BusinessOpeningHours
Source§fn default() -> BusinessOpeningHours
fn default() -> BusinessOpeningHours
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessOpeningHours
impl<'de> Deserialize<'de> for BusinessOpeningHours
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 From<BoxWrapper<Box<BusinessOpeningHours>>> for BusinessOpeningHours
impl From<BoxWrapper<Box<BusinessOpeningHours>>> for BusinessOpeningHours
Source§fn from(t: BoxWrapper<Box<BusinessOpeningHours>>) -> Self
fn from(t: BoxWrapper<Box<BusinessOpeningHours>>) -> Self
Converts to this type from the input type.
Source§impl From<BoxWrapper<Unbox<BusinessOpeningHours>>> for BusinessOpeningHours
impl From<BoxWrapper<Unbox<BusinessOpeningHours>>> for BusinessOpeningHours
Source§fn from(t: BoxWrapper<Unbox<BusinessOpeningHours>>) -> Self
fn from(t: BoxWrapper<Unbox<BusinessOpeningHours>>) -> Self
Converts to this type from the input type.
Source§impl From<NoSkipBusinessOpeningHours> for BusinessOpeningHours
impl From<NoSkipBusinessOpeningHours> for BusinessOpeningHours
Source§fn from(t: NoSkipBusinessOpeningHours) -> Self
fn from(t: NoSkipBusinessOpeningHours) -> Self
Converts to this type from the input type.
Source§impl Hash for BusinessOpeningHours
impl Hash for BusinessOpeningHours
Source§impl Into<NoSkipBusinessOpeningHours> for BusinessOpeningHours
impl Into<NoSkipBusinessOpeningHours> for BusinessOpeningHours
Source§fn into(self) -> NoSkipBusinessOpeningHours
fn into(self) -> NoSkipBusinessOpeningHours
Converts this type into the (usually inferred) input type.
Source§impl Ord for BusinessOpeningHours
impl Ord for BusinessOpeningHours
Source§fn cmp(&self, other: &BusinessOpeningHours) -> Ordering
fn cmp(&self, other: &BusinessOpeningHours) -> 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 for BusinessOpeningHours
impl PartialEq for BusinessOpeningHours
Source§impl PartialOrd for BusinessOpeningHours
impl PartialOrd for BusinessOpeningHours
Source§impl Serialize for BusinessOpeningHours
impl Serialize for BusinessOpeningHours
impl Eq for BusinessOpeningHours
impl StructuralPartialEq for BusinessOpeningHours
Auto Trait Implementations§
impl Freeze for BusinessOpeningHours
impl RefUnwindSafe for BusinessOpeningHours
impl Send for BusinessOpeningHours
impl Sync for BusinessOpeningHours
impl Unpin for BusinessOpeningHours
impl UnsafeUnpin for BusinessOpeningHours
impl UnwindSafe for BusinessOpeningHours
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.