pub struct AuthSession { /* private fields */ }Expand description
A flat string-keyed map of session fields a webapp wants to expose to
resolvers, inserted into DesignationContext as a typed extension.
Webapps populate an AuthSession from their own session struct (cookie
session, JWT claims, etc.) and call ctx.insert(session). The
WebappResolver reads it back via ctx.get::<AuthSession>().
Implementations§
Trait Implementations§
Source§impl Clone for AuthSession
impl Clone for AuthSession
Source§fn clone(&self) -> AuthSession
fn clone(&self) -> AuthSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthSession
impl Debug for AuthSession
Source§impl Default for AuthSession
impl Default for AuthSession
Source§fn default() -> AuthSession
fn default() -> AuthSession
Returns the “default value” for a type. Read more
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