pub struct Authenticated {
pub session_id: String,
pub owner_id: String,
pub last_step_up_at: Option<i64>,
pub expires_at: i64,
pub slid: bool,
}Expand description
A request’s session, once its cookie checks out.
Fields§
§session_id: StringThe session’s id: the SHA-256 of its token, as stored.
owner_id: String§last_step_up_at: Option<i64>§expires_at: i64§slid: boolThis request slid the expiry: the cookie is sent again with it.
Implementations§
Source§impl Authenticated
impl Authenticated
Sourcepub fn stepped_up(&self, now: i64) -> bool
pub fn stepped_up(&self, now: i64) -> bool
Whether the last password check was within STEP_UP_SECS.
Trait Implementations§
Source§impl Clone for Authenticated
impl Clone for Authenticated
Source§impl Debug for Authenticated
impl Debug for Authenticated
impl Eq for Authenticated
Source§impl PartialEq for Authenticated
impl PartialEq for Authenticated
impl StructuralPartialEq for Authenticated
Auto Trait Implementations§
impl Freeze for Authenticated
impl RefUnwindSafe for Authenticated
impl Send for Authenticated
impl Sync for Authenticated
impl Unpin for Authenticated
impl UnsafeUnpin for Authenticated
impl UnwindSafe for Authenticated
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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