#[non_exhaustive]pub enum DurationType {
ElapsedTime,
WorkTime,
NotDefined,
}Expand description
Whether a duration counts working time or elapsed time.
IfcTaskDurationEnum. The distinction matters: two days of work time may
span four calendar days across a weekend, and a caller converting one to
the other needs the calendar.
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.
ElapsedTime
.ELAPSEDTIME.: calendar time, weekends included.
WorkTime
.WORKTIME.: working time as defined by a calendar.
NotDefined
.NOTDEFINED.
Trait Implementations§
Source§impl Clone for DurationType
impl Clone for DurationType
impl Copy for DurationType
Source§impl Debug for DurationType
impl Debug for DurationType
impl Eq for DurationType
Source§impl PartialEq for DurationType
impl PartialEq for DurationType
impl StructuralPartialEq for DurationType
Auto Trait Implementations§
impl Freeze for DurationType
impl RefUnwindSafe for DurationType
impl Send for DurationType
impl Sync for DurationType
impl Unpin for DurationType
impl UnsafeUnpin for DurationType
impl UnwindSafe for DurationType
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