pub struct LoginResponse {
pub user_id: Uuid,
pub username: String,
pub email: String,
pub is_verified: bool,
pub success: bool,
pub token: Option<String>,
pub token_expires_at: Option<String>,
}Expand description
Login response DTO
Fields§
§user_id: Uuid§username: String§email: String§is_verified: bool§success: bool§token: Option<String>Opaque bearer token issued on successful login, when configured.
token_expires_at: Option<String>RFC 3339 expiry of the issued token, paired with token.
Trait Implementations§
Source§impl Debug for LoginResponse
impl Debug for LoginResponse
Auto Trait Implementations§
impl Freeze for LoginResponse
impl RefUnwindSafe for LoginResponse
impl Send for LoginResponse
impl Sync for LoginResponse
impl Unpin for LoginResponse
impl UnsafeUnpin 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