pub struct TimeWindow {
pub start: Option<String>,
pub end: Option<String>,
pub timezone: Option<String>,
}Expand description
One route’s time_restrictions: the window bounds and the IANA zone.
None bounds mirror the reference’s missing dict keys: the evaluation
raises into its except arm and the request is allowed.
Fields§
§start: Option<String>The window’s "HH:MM" opening bound (start).
end: Option<String>The window’s "HH:MM" closing bound (end).
timezone: Option<String>The IANA zone name (timezone); None or an unknown name is UTC.
Trait Implementations§
Source§impl Clone for TimeWindow
impl Clone for TimeWindow
Source§impl Debug for TimeWindow
impl Debug for TimeWindow
Source§impl Default for TimeWindow
impl Default for TimeWindow
impl Eq for TimeWindow
Source§impl PartialEq for TimeWindow
impl PartialEq for TimeWindow
impl StructuralPartialEq for TimeWindow
Auto Trait Implementations§
impl Freeze for TimeWindow
impl RefUnwindSafe for TimeWindow
impl Send for TimeWindow
impl Sync for TimeWindow
impl Unpin for TimeWindow
impl UnsafeUnpin for TimeWindow
impl UnwindSafe for TimeWindow
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> 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.