pub struct JwtClaims<S> { /* private fields */ }Implementations§
Source§impl<S> JwtClaims<S>where
S: Serialize + DeserializeOwned,
impl<S> JwtClaims<S>where
S: Serialize + DeserializeOwned,
pub fn try_new(subject: &S, options: &JwtClaimsOptions) -> JwtResult<Self>
pub fn issued_at(&self) -> NaiveDateTime
pub fn expires_at(&self) -> NaiveDateTime
pub fn subject(&self) -> S
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for JwtClaims<S>
impl<'de, S> Deserialize<'de> for JwtClaims<S>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<S> Freeze for JwtClaims<S>
impl<S> RefUnwindSafe for JwtClaims<S>where
S: RefUnwindSafe,
impl<S> Send for JwtClaims<S>where
S: Send,
impl<S> Sync for JwtClaims<S>where
S: Sync,
impl<S> Unpin for JwtClaims<S>where
S: Unpin,
impl<S> UnsafeUnpin for JwtClaims<S>
impl<S> UnwindSafe for JwtClaims<S>where
S: 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