pub struct AuthToken {
pub ok: bool,
pub detail: String,
pub username: String,
pub time_left: i64,
}Expand description
Represents the result of authentication, indicating whether it was successful or not.
If successful, it includes the username and a generated key for the session.
Fields§
§ok: bool§detail: String§username: String§time_left: i64Auto Trait Implementations§
impl Freeze for AuthToken
impl RefUnwindSafe for AuthToken
impl Send for AuthToken
impl Sync for AuthToken
impl Unpin for AuthToken
impl UnwindSafe for AuthToken
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