pub struct AuthSession { /* private fields */ }Implementations§
Source§impl AuthSession
impl AuthSession
pub fn user_id(&self) -> &str
pub fn token(&self) -> &SecretString
pub const fn token_expires(&self) -> OffsetDateTime
pub fn into_parts(self) -> (String, SecretString, OffsetDateTime)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthSession
impl RefUnwindSafe for AuthSession
impl Send for AuthSession
impl Sync for AuthSession
impl Unpin for AuthSession
impl UnsafeUnpin for AuthSession
impl UnwindSafe for AuthSession
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