pub enum MissingTimezoneContextReason {
NotConfigured,
MultiCalendarConflict {
calendars: Vec<String>,
},
}Expand description
Why a host failed to supply a timezone context to a FEL temporal builtin.
Closed-set per ADR 0069 D-6. The default case is NotConfigured (host never
set a clock); MultiCalendarConflict carries the conflicting calendar
identifiers when business-calendar resolution (per
work-spec/specs/sidecars/business-calendar.md §7.1) cannot pick a single
timezone. Hosts surface their own variant from
crate::evaluator::Environment::current_date /
crate::evaluator::Environment::current_datetime.
Variants§
NotConfigured
No clock was configured on the crate::evaluator::Environment.
MultiCalendarConflict
Multiple applicable business calendars disagreed on which timezone
applies (per business-calendar.md §7.1).
Trait Implementations§
Source§impl Clone for MissingTimezoneContextReason
impl Clone for MissingTimezoneContextReason
Source§impl Debug for MissingTimezoneContextReason
impl Debug for MissingTimezoneContextReason
impl Eq for MissingTimezoneContextReason
impl StructuralPartialEq for MissingTimezoneContextReason
Auto Trait Implementations§
impl Forget for MissingTimezoneContextReason
impl Freeze for MissingTimezoneContextReason
impl RefUnwindSafe for MissingTimezoneContextReason
impl Send for MissingTimezoneContextReason
impl Sync for MissingTimezoneContextReason
impl Unpin for MissingTimezoneContextReason
impl UnsafeUnpin for MissingTimezoneContextReason
impl UnwindSafe for MissingTimezoneContextReason
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.