pub struct WorkingPeriod {
pub from: ClockTime,
pub to: ClockTime,
}Expand description
A local working period on one day, written {"from": "08:00", "to": "12:00"}; to may be
24:00.
Fields§
§from: ClockTimeStart of the period.
to: ClockTimeEnd of the period, after its start.
Implementations§
Trait Implementations§
Source§impl Clone for WorkingPeriod
impl Clone for WorkingPeriod
impl Copy for WorkingPeriod
Source§impl Debug for WorkingPeriod
impl Debug for WorkingPeriod
Source§impl<'de> Deserialize<'de> for WorkingPeriod
impl<'de> Deserialize<'de> for WorkingPeriod
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
impl Eq for WorkingPeriod
Source§impl Ord for WorkingPeriod
impl Ord for WorkingPeriod
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorkingPeriod
impl PartialEq for WorkingPeriod
Source§impl PartialOrd for WorkingPeriod
impl PartialOrd for WorkingPeriod
Source§impl Serialize for WorkingPeriod
impl Serialize for WorkingPeriod
impl StructuralPartialEq for WorkingPeriod
Auto Trait Implementations§
impl Freeze for WorkingPeriod
impl RefUnwindSafe for WorkingPeriod
impl Send for WorkingPeriod
impl Sync for WorkingPeriod
impl Unpin for WorkingPeriod
impl UnsafeUnpin for WorkingPeriod
impl UnwindSafe for WorkingPeriod
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