pub struct SessionAuth {
pub user_id: UserId,
pub roles: Vec<String>,
}Fields§
§user_id: UserId§roles: Vec<String>Trait Implementations§
Source§impl Clone for SessionAuth
impl Clone for SessionAuth
Source§fn clone(&self) -> SessionAuth
fn clone(&self) -> SessionAuth
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 SessionAuth
impl RefUnwindSafe for SessionAuth
impl Send for SessionAuth
impl Sync for SessionAuth
impl Unpin for SessionAuth
impl UnsafeUnpin for SessionAuth
impl UnwindSafe for SessionAuth
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