pub struct Zeitfenster(/* private fields */);Expand description
A time window for an appointment. XSD ZeitfensterType: the 125 values 1–99 and
A–Z. The standard windows are 1 (working days 8–14 h), 2 (working days 14–20 h)
and 3 (Saturdays 8–16 h), XSD 4.00.03 annotations; 20–41 are the special windows
(„Sonderzeitfenster“, by additional agreement) of AH 2.9.5 §3.3. The others are reserved.
Implementations§
Source§impl Zeitfenster
impl Zeitfenster
Sourcepub const WERKTAGS_VORMITTAG: Self
pub const WERKTAGS_VORMITTAG: Self
1 — working days 08:00–14:00.
Sourcepub const WERKTAGS_NACHMITTAG: Self
pub const WERKTAGS_NACHMITTAG: Self
2 — working days 14:00–20:00.
Sourcepub fn new(s: &str) -> Result<Self, ValueError>
pub fn new(s: &str) -> Result<Self, ValueError>
Parses a value of the enumeration.
§Errors
crate::ValueError for anything but 1–99 (no leading zero) and A–Z.
Sourcepub const fn is_assigned(self) -> bool
pub const fn is_assigned(self) -> bool
Whether the window is assigned — a standard window (1–3) or a special window
(20–41, AH 2.9.5 §3.3) — rather than reserved.
Trait Implementations§
Source§impl Clone for Zeitfenster
impl Clone for Zeitfenster
impl Copy for Zeitfenster
Source§impl Debug for Zeitfenster
impl Debug for Zeitfenster
Source§impl Display for Zeitfenster
impl Display for Zeitfenster
impl Eq for Zeitfenster
Source§impl FromStr for Zeitfenster
impl FromStr for Zeitfenster
Source§impl Hash for Zeitfenster
impl Hash for Zeitfenster
Source§impl Ord for Zeitfenster
impl Ord for Zeitfenster
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 Zeitfenster
impl PartialEq for Zeitfenster
Source§impl PartialOrd for Zeitfenster
impl PartialOrd for Zeitfenster
impl StructuralPartialEq for Zeitfenster
Auto Trait Implementations§
impl Forget for Zeitfenster
impl Freeze for Zeitfenster
impl Move for Zeitfenster
impl RefUnwindSafe for Zeitfenster
impl Send for Zeitfenster
impl Sync for Zeitfenster
impl Unpin for Zeitfenster
impl UnsafeUnpin for Zeitfenster
impl UnwindSafe for Zeitfenster
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