Struct protobuf_web_token::TokenData
source · pub struct TokenData<CLAIMS> {
pub valid_until: SystemTime,
pub claims: CLAIMS,
}
Fields§
§valid_until: SystemTime
§claims: CLAIMS
Trait Implementations§
source§impl<CLAIMS: Ord> Ord for TokenData<CLAIMS>
impl<CLAIMS: Ord> Ord for TokenData<CLAIMS>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<CLAIMS: PartialEq> PartialEq for TokenData<CLAIMS>
impl<CLAIMS: PartialEq> PartialEq for TokenData<CLAIMS>
source§impl<CLAIMS: PartialOrd> PartialOrd for TokenData<CLAIMS>
impl<CLAIMS: PartialOrd> PartialOrd for TokenData<CLAIMS>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<CLAIMS: Copy> Copy for TokenData<CLAIMS>
impl<CLAIMS: Eq> Eq for TokenData<CLAIMS>
impl<CLAIMS> StructuralPartialEq for TokenData<CLAIMS>
Auto Trait Implementations§
impl<CLAIMS> Freeze for TokenData<CLAIMS>where
CLAIMS: Freeze,
impl<CLAIMS> RefUnwindSafe for TokenData<CLAIMS>where
CLAIMS: RefUnwindSafe,
impl<CLAIMS> Send for TokenData<CLAIMS>where
CLAIMS: Send,
impl<CLAIMS> Sync for TokenData<CLAIMS>where
CLAIMS: Sync,
impl<CLAIMS> Unpin for TokenData<CLAIMS>where
CLAIMS: Unpin,
impl<CLAIMS> UnwindSafe for TokenData<CLAIMS>where
CLAIMS: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)