pub struct HoursException {
pub closed: bool,
pub date: String,
pub ranges: Vec<TimeRange>,
}Expand description
A single-date override of the weekly schedule (holiday / special hours).
JSON schema
{
"description": "A single-date override of the weekly schedule (holiday / special hours).",
"type": "object",
"required": [
"date"
],
"properties": {
"closed": {
"description": "Closed all day regardless of ranges.",
"default": false,
"type": "boolean"
},
"date": {
"description": "\"YYYY-MM-DD\" in the flow's timezone.",
"type": "string"
},
"ranges": {
"type": "array",
"items": {
"$ref": "#/definitions/TimeRange"
}
}
}
}Fields§
§closed: boolClosed all day regardless of ranges.
date: String“YYYY-MM-DD” in the flow’s timezone.
ranges: Vec<TimeRange>Trait Implementations§
Source§impl Clone for HoursException
impl Clone for HoursException
Source§fn clone(&self) -> HoursException
fn clone(&self) -> HoursException
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HoursException
impl Debug for HoursException
Source§impl<'de> Deserialize<'de> for HoursException
impl<'de> Deserialize<'de> for HoursException
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<&HoursException> for HoursException
impl From<&HoursException> for HoursException
Source§fn from(value: &HoursException) -> Self
fn from(value: &HoursException) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HoursException
impl RefUnwindSafe for HoursException
impl Send for HoursException
impl Sync for HoursException
impl Unpin for HoursException
impl UnsafeUnpin for HoursException
impl UnwindSafe for HoursException
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