pub enum InvalidatedTokensEvent {
Full(HashSet<JWT>),
Diff {
add: Option<HashSet<JWT>>,
remove: Option<HashSet<JWT>>,
},
Add(JWT),
Remove(JWT),
}
Expand description
Describes changes to invalidated tokens
Variants§
Full(HashSet<JWT>)
A full reload of invalidated JWTs
Diff
A batched “diff” invalidated JWTs
Add(JWT)
Add a single invalidated JWT
Remove(JWT)
Remove a single invalidated JWT
Trait Implementations§
Source§impl Clone for InvalidatedTokensEvent
impl Clone for InvalidatedTokensEvent
Source§fn clone(&self) -> InvalidatedTokensEvent
fn clone(&self) -> InvalidatedTokensEvent
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 InvalidatedTokensEvent
impl Debug for InvalidatedTokensEvent
Source§impl PartialEq for InvalidatedTokensEvent
impl PartialEq for InvalidatedTokensEvent
impl Eq for InvalidatedTokensEvent
impl StructuralPartialEq for InvalidatedTokensEvent
Auto Trait Implementations§
impl Freeze for InvalidatedTokensEvent
impl RefUnwindSafe for InvalidatedTokensEvent
impl Send for InvalidatedTokensEvent
impl Sync for InvalidatedTokensEvent
impl Unpin for InvalidatedTokensEvent
impl UnwindSafe for InvalidatedTokensEvent
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.