pub struct TemporalOptions {
pub epsilon: Duration,
pub now: Option<OffsetDateTime>,
}
Expand description
Options for validating temporal claims
To deal with clock drifts, you might want to provide an epsilon
error margin in the form of a
time::Duration
to allow time comparisons to fall within the margin.
Fields§
§epsilon: Duration
Allow for some leeway for clock drifts, limited to this duration during temporal validation
now: Option<OffsetDateTime>
Specify a time to use in temporal validation instead of Now
Trait Implementations§
Source§impl Clone for TemporalOptions
impl Clone for TemporalOptions
Source§fn clone(&self) -> TemporalOptions
fn clone(&self) -> TemporalOptions
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 TemporalOptions
impl Debug for TemporalOptions
Source§impl Default for TemporalOptions
impl Default for TemporalOptions
Source§impl PartialEq for TemporalOptions
impl PartialEq for TemporalOptions
impl Copy for TemporalOptions
impl Eq for TemporalOptions
impl StructuralPartialEq for TemporalOptions
Auto Trait Implementations§
impl Freeze for TemporalOptions
impl RefUnwindSafe for TemporalOptions
impl Send for TemporalOptions
impl Sync for TemporalOptions
impl Unpin for TemporalOptions
impl UnwindSafe for TemporalOptions
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.