pub struct LoginState {
pub status: LoginStatus,
pub code: Option<String>,
pub error: Option<String>,
pub created_at: i64,
}Available on non-WebAssembly only.
Expand description
Login state information
Fields§
§status: LoginStatusCurrent status of the login session
code: Option<String>OAuth authorization code (present when status is Success)
error: Option<String>Error message (present when status is Failed)
created_at: i64Creation timestamp (Unix timestamp)
Trait Implementations§
Source§impl Clone for LoginState
impl Clone for LoginState
Source§fn clone(&self) -> LoginState
fn clone(&self) -> LoginState
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 LoginState
impl Debug for LoginState
Source§impl<'de> Deserialize<'de> for LoginState
impl<'de> Deserialize<'de> for LoginState
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 LoginState
impl RefUnwindSafe for LoginState
impl Send for LoginState
impl Sync for LoginState
impl Unpin for LoginState
impl UnwindSafe for LoginState
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