pub struct SessionUser {
pub user: Box<UserSelf>,
pub original: Option<Box<UserSelf>>,
}
Expand description
SessionUser : Response for the /user/me endpoint, returns the currently active user (as user
property) and, if this user is being impersonated, the original user in the original
property.
Fields§
§user: Box<UserSelf>
§original: Option<Box<UserSelf>>
Implementations§
Source§impl SessionUser
impl SessionUser
Sourcepub fn new(user: UserSelf) -> SessionUser
pub fn new(user: UserSelf) -> SessionUser
Response for the /user/me endpoint, returns the currently active user (as user
property) and, if this user is being impersonated, the original user in the original
property.
Trait Implementations§
Source§impl Clone for SessionUser
impl Clone for SessionUser
Source§fn clone(&self) -> SessionUser
fn clone(&self) -> SessionUser
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 moreSource§impl Debug for SessionUser
impl Debug for SessionUser
Source§impl Default for SessionUser
impl Default for SessionUser
Source§fn default() -> SessionUser
fn default() -> SessionUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionUser
impl<'de> Deserialize<'de> for SessionUser
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 PartialEq for SessionUser
impl PartialEq for SessionUser
Source§impl Serialize for SessionUser
impl Serialize for SessionUser
impl StructuralPartialEq for SessionUser
Auto Trait Implementations§
impl Freeze for SessionUser
impl RefUnwindSafe for SessionUser
impl Send for SessionUser
impl Sync for SessionUser
impl Unpin for SessionUser
impl UnwindSafe for SessionUser
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