pub enum UserInformation {
Authenticated(UserDetails),
Anonymous,
}Expand description
Information about the authenticated user, may be anonymous
Variants§
Authenticated(UserDetails)
Anonymous
Implementations§
Trait Implementations§
Source§impl Clone for UserInformation
impl Clone for UserInformation
Source§fn clone(&self) -> UserInformation
fn clone(&self) -> UserInformation
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 UserInformation
impl Debug for UserInformation
Source§impl FromRequest for UserInformation
Extractor for user information.
impl FromRequest for UserInformation
Extractor for user information.
Source§type Future = Ready<Result<UserInformation, <UserInformation as FromRequest>::Error>>
type Future = Ready<Result<UserInformation, <UserInformation as FromRequest>::Error>>
Future that resolves to a
Self. Read moreSource§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl Freeze for UserInformation
impl RefUnwindSafe for UserInformation
impl Send for UserInformation
impl Sync for UserInformation
impl Unpin for UserInformation
impl UnwindSafe for UserInformation
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