pub struct SessionData<U = UserView> {
pub session: SessionView,
pub user: U,
}Expand description
A session and its selected User value, independent of the application’s storage models.
Fields§
§session: SessionViewSession visible to the caller.
user: UUser visible to the caller.
Implementations§
Source§impl SessionData<JoinValue<UserView>>
impl SessionData<JoinValue<UserView>>
Sourcepub fn into_typed(self) -> AuthResult<Option<SessionData>>
pub fn into_typed(self) -> AuthResult<Option<SessionData>>
A typed authentication caller requires one User; a relationship page has no User identity.
Trait Implementations§
Source§impl<U: Clone> Clone for SessionData<U>
impl<U: Clone> Clone for SessionData<U>
Source§impl<U: Debug> Debug for SessionData<U>
impl<U: Debug> Debug for SessionData<U>
Source§impl<'de, U> Deserialize<'de> for SessionData<U>where
U: Deserialize<'de>,
impl<'de, U> Deserialize<'de> for SessionData<U>where
U: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SessionData<JoinValue<UserView>>> for NativeSessionData
impl From<SessionData<JoinValue<UserView>>> for NativeSessionData
Source§impl From<SessionData> for NativeSessionData
impl From<SessionData> for NativeSessionData
Source§fn from(data: SessionData) -> Self
fn from(data: SessionData) -> Self
Converts to this type from the input type.
Source§impl From<SessionData> for SessionData<JoinValue<UserView>>
impl From<SessionData> for SessionData<JoinValue<UserView>>
Source§fn from(data: SessionData) -> Self
fn from(data: SessionData) -> Self
Converts to this type from the input type.
Source§impl From<SessionData> for FieldMap
impl From<SessionData> for FieldMap
Source§fn from(data: SessionData) -> Self
fn from(data: SessionData) -> Self
Converts to this type from the input type.
Source§impl FromFieldMap for SessionData
impl FromFieldMap for SessionData
fn from_field_values(fields: FieldMap) -> AuthResult<Self>
Auto Trait Implementations§
impl<U> Freeze for SessionData<U>where
U: Freeze,
impl<U> RefUnwindSafe for SessionData<U>where
U: RefUnwindSafe,
impl<U> Send for SessionData<U>where
U: Send,
impl<U> Sync for SessionData<U>where
U: Sync,
impl<U> Unpin for SessionData<U>where
U: Unpin,
impl<U> UnsafeUnpin for SessionData<U>where
U: UnsafeUnpin,
impl<U> UnwindSafe for SessionData<U>where
U: 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