pub struct SessionView {
pub session: Session,
pub row: Row,
pub user: UserView,
pub token: Option<String>,
pub ephemeral: bool,
}Expand description
A session as endpoints and plugins see it.
Fields§
§session: Session§row: Row§user: UserView§token: Option<String>The raw token, when the request carried it. Never stored.
ephemeral: boolCreated for this request only by a resolver (e.g. an API key); not in the database.
Implementations§
Trait Implementations§
Source§impl Clone for SessionView
impl Clone for SessionView
Auto Trait Implementations§
impl Forget for SessionView
impl Freeze for SessionView
impl Move for SessionView
impl RefUnwindSafe for SessionView
impl Send for SessionView
impl Sync for SessionView
impl Unpin for SessionView
impl UnsafeUnpin for SessionView
impl UnwindSafe for SessionView
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