pub enum DeterministicMode {
Disabled {
timezone: TimeZoneSpec,
},
Enabled {
timestamp_utc: DateTime<Utc>,
timezone: TimeZoneSpec,
},
}Expand description
Deterministic evaluation configuration.
When enabled, volatile sources (clock/timezone) are derived solely from this config.
Variants§
Disabled
Non-deterministic: uses the system clock.
Fields
§
timezone: TimeZoneSpecTimezone used by volatile date/time builtins.
Enabled
Deterministic: uses a fixed timestamp in the provided timezone.
Fields
§
timezone: TimeZoneSpecTimezone used to interpret timestamp_utc for NOW()/TODAY().
Implementations§
Source§impl DeterministicMode
impl DeterministicMode
pub fn is_enabled(&self) -> bool
pub fn timezone(&self) -> &TimeZoneSpec
pub fn validate(&self) -> Result<(), ExcelError>
pub fn build_clock(&self) -> Result<Arc<dyn ClockProvider>, ExcelError>
Trait Implementations§
Source§impl Clone for DeterministicMode
impl Clone for DeterministicMode
Source§fn clone(&self) -> DeterministicMode
fn clone(&self) -> DeterministicMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeterministicMode
impl Debug for DeterministicMode
Source§impl Default for DeterministicMode
impl Default for DeterministicMode
Source§impl PartialEq for DeterministicMode
impl PartialEq for DeterministicMode
impl Eq for DeterministicMode
impl StructuralPartialEq for DeterministicMode
Auto Trait Implementations§
impl Freeze for DeterministicMode
impl RefUnwindSafe for DeterministicMode
impl Send for DeterministicMode
impl Sync for DeterministicMode
impl Unpin for DeterministicMode
impl UnsafeUnpin for DeterministicMode
impl UnwindSafe for DeterministicMode
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more