pub struct SessionContext {
pub session: Session,
pub authenticated: bool,
}Expand description
Session context for request handling
Fields§
§session: Session§authenticated: boolImplementations§
Source§impl SessionContext
impl SessionContext
Sourcepub fn get_metadata<T: for<'de> Deserialize<'de>>(&self, key: &str) -> Option<T>
pub fn get_metadata<T: for<'de> Deserialize<'de>>(&self, key: &str) -> Option<T>
Get session metadata value
Trait Implementations§
Source§impl Clone for SessionContext
impl Clone for SessionContext
Auto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnsafeUnpin for SessionContext
impl UnwindSafe for SessionContext
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