Struct biscuit::TemporalOptions
source · 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
chrono::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<DateTime<Utc>>
Specify a time to use in temporal validation instead of Now
Trait Implementations
sourceimpl Clone for TemporalOptions
impl Clone for TemporalOptions
sourcefn clone(&self) -> TemporalOptions
fn clone(&self) -> TemporalOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TemporalOptions
impl Debug for TemporalOptions
sourceimpl Default for TemporalOptions
impl Default for TemporalOptions
sourceimpl PartialEq<TemporalOptions> for TemporalOptions
impl PartialEq<TemporalOptions> for TemporalOptions
sourcefn eq(&self, other: &TemporalOptions) -> bool
fn eq(&self, other: &TemporalOptions) -> bool
impl Copy for TemporalOptions
impl Eq for TemporalOptions
impl StructuralEq for TemporalOptions
impl StructuralPartialEq for TemporalOptions
Auto Trait Implementations
impl RefUnwindSafe for TemporalOptions
impl Send for TemporalOptions
impl Sync for TemporalOptions
impl Unpin for TemporalOptions
impl UnwindSafe for TemporalOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.