pub struct ExceptionDates {
pub exception_date: Option<String>,
pub is_open: Option<bool>,
pub open_intervals: Option<Vec<OpenInterval>>,
}Expand description
ExceptionDates : Dates when the business is closed or open with a different time window.
Fields§
§exception_date: Option<String>Date when the business is closed, in ISO 8601 date format.
is_open: Option<bool>Boolean indicating if the business is closed or open on that date.
open_intervals: Option<Vec<OpenInterval>>Time window during the day when the business is open.
Implementations§
Source§impl ExceptionDates
impl ExceptionDates
Sourcepub fn new() -> ExceptionDates
pub fn new() -> ExceptionDates
Dates when the business is closed or open with a different time window.
Trait Implementations§
Source§impl Clone for ExceptionDates
impl Clone for ExceptionDates
Source§fn clone(&self) -> ExceptionDates
fn clone(&self) -> ExceptionDates
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 ExceptionDates
impl Debug for ExceptionDates
Source§impl Default for ExceptionDates
impl Default for ExceptionDates
Source§fn default() -> ExceptionDates
fn default() -> ExceptionDates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExceptionDates
impl<'de> Deserialize<'de> for ExceptionDates
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 ExceptionDates
impl PartialEq for ExceptionDates
Source§impl Serialize for ExceptionDates
impl Serialize for ExceptionDates
impl StructuralPartialEq for ExceptionDates
Auto Trait Implementations§
impl Freeze for ExceptionDates
impl RefUnwindSafe for ExceptionDates
impl Send for ExceptionDates
impl Sync for ExceptionDates
impl Unpin for ExceptionDates
impl UnwindSafe for ExceptionDates
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