pub struct TimeConstraint { /* private fields */ }
Expand description
A processed set of token claims that limit it in time.
Implementations§
Source§impl TimeConstraint
impl TimeConstraint
Sourcepub fn unbounded() -> Self
pub fn unbounded() -> Self
Creates a TimeConstraint
with no bounds; it is valid at any time.
Sourcepub fn from_claims_set(claims: &CwtClaimsSet<'_>) -> Self
pub fn from_claims_set(claims: &CwtClaimsSet<'_>) -> Self
Extract time constraint from a claim.
This is infallible as long as all relevant constraints on the value can be encoded in the ace module; doing that is preferable because it eases error tracking.
Trait Implementations§
Source§impl Clone for TimeConstraint
impl Clone for TimeConstraint
Source§fn clone(&self) -> TimeConstraint
fn clone(&self) -> TimeConstraint
Returns a copy 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 TimeConstraint
impl Debug for TimeConstraint
impl Copy for TimeConstraint
Auto Trait Implementations§
impl Freeze for TimeConstraint
impl RefUnwindSafe for TimeConstraint
impl Send for TimeConstraint
impl Sync for TimeConstraint
impl Unpin for TimeConstraint
impl UnwindSafe for TimeConstraint
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