pub struct SessionCtx {
pub username: String,
pub role: UserRole,
pub csrf_token: String,
}Expand description
Authenticated browser session + bound CSRF token resolved once per request.
Fields§
§username: String§role: UserRole§csrf_token: StringTrait Implementations§
Source§impl Clone for SessionCtx
impl Clone for SessionCtx
Source§impl Debug for SessionCtx
impl Debug for SessionCtx
impl Eq for SessionCtx
Source§impl PartialEq for SessionCtx
impl PartialEq for SessionCtx
impl StructuralPartialEq for SessionCtx
Auto Trait Implementations§
impl Forget for SessionCtx
impl Freeze for SessionCtx
impl Move for SessionCtx
impl RefUnwindSafe for SessionCtx
impl Send for SessionCtxwhere
RawVecInner: Send,
impl Sync for SessionCtxwhere
RawVecInner: Sync,
impl Unpin for SessionCtx
impl UnsafeUnpin for SessionCtx
impl UnwindSafe for SessionCtxwhere
RawVecInner: UnwindSafe,
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