pub struct LoginResponse {
pub id: u32,
pub username: String,
pub email: String,
pub first_name: String,
pub last_name: String,
pub gender: String,
pub image: String,
pub access_token: String,
pub refresh_token: String,
}Expand description
Login response
Fields§
§id: u32§username: String§email: String§first_name: String§last_name: String§gender: String§image: String§access_token: StringJWT accessToken (for backward compatibility) in response and cookies
refresh_token: StringrefreshToken in response and cookies
Trait Implementations§
Source§impl Debug for LoginResponse
impl Debug for LoginResponse
Source§impl<'de> Deserialize<'de> for LoginResponse
impl<'de> Deserialize<'de> for LoginResponse
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
Auto Trait Implementations§
impl Freeze for LoginResponse
impl RefUnwindSafe for LoginResponse
impl Send for LoginResponse
impl Sync for LoginResponse
impl Unpin for LoginResponse
impl UnwindSafe for LoginResponse
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