#[non_exhaustive]pub enum WorkTimeRole {
Working,
Exception,
}Expand description
Whether a period declares work or an exception to it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Working
From WorkingTimes: work happens in this period.
Exception
From ExceptionTimes: work does not happen in this period.
Trait Implementations§
Source§impl Clone for WorkTimeRole
impl Clone for WorkTimeRole
Source§fn clone(&self) -> WorkTimeRole
fn clone(&self) -> WorkTimeRole
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 moreimpl Copy for WorkTimeRole
Source§impl Debug for WorkTimeRole
impl Debug for WorkTimeRole
impl Eq for WorkTimeRole
Source§impl PartialEq for WorkTimeRole
impl PartialEq for WorkTimeRole
impl StructuralPartialEq for WorkTimeRole
Auto Trait Implementations§
impl Freeze for WorkTimeRole
impl RefUnwindSafe for WorkTimeRole
impl Send for WorkTimeRole
impl Sync for WorkTimeRole
impl Unpin for WorkTimeRole
impl UnsafeUnpin for WorkTimeRole
impl UnwindSafe for WorkTimeRole
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