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
Source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin 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