pub struct UserAuth(pub Identity, pub String);Expand description
Wrapper to encode User authentication state
This structure can be aquired by challenging an authentication
endpoint, such as User::login to yield a token. If a session for
this Identity already exists, it will be re-used.
Tuple Fields§
§0: Identity§1: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for UserAuth
impl<'de> Deserialize<'de> for UserAuth
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UserAuth, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UserAuth
Source§impl Ord for UserAuth
impl Ord for UserAuth
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for UserAuth
impl PartialOrd for UserAuth
Source§impl Serialize for UserAuth
impl Serialize for UserAuth
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for UserAuth
Auto Trait Implementations§
impl Freeze for UserAuth
impl RefUnwindSafe for UserAuth
impl Send for UserAuth
impl Sync for UserAuth
impl Unpin for UserAuth
impl UnsafeUnpin for UserAuth
impl UnwindSafe for UserAuth
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