pub struct Token<P> { /* private fields */ }
Implementations§
Source§impl<P> Token<P>
impl<P> Token<P>
pub fn new(required_claims: RequiredClaims, payload: P) -> Token<P>
pub fn get_claims(&self) -> RequiredClaims
pub fn get_payload(&self) -> &P
Auto Trait Implementations§
impl<P> Freeze for Token<P>where
P: Freeze,
impl<P> RefUnwindSafe for Token<P>where
P: RefUnwindSafe,
impl<P> Send for Token<P>where
P: Send,
impl<P> Sync for Token<P>where
P: Sync,
impl<P> Unpin for Token<P>where
P: Unpin,
impl<P> UnwindSafe for Token<P>where
P: 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