pub struct LocalAuthSnapshot {
pub authenticated: bool,
pub active_account_id: Option<String>,
}Expand description
A local, non-mutating view of the persisted Parslee login state.
Unlike fetch_status, this never refreshes a token and never calls the
Parslee API. It is the safe pre-browser baseline for a login attempt.
Fields§
§authenticated: bool§active_account_id: Option<String>Trait Implementations§
Source§impl Clone for LocalAuthSnapshot
impl Clone for LocalAuthSnapshot
Source§fn clone(&self) -> LocalAuthSnapshot
fn clone(&self) -> LocalAuthSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocalAuthSnapshot
impl Debug for LocalAuthSnapshot
Source§impl<'de> Deserialize<'de> for LocalAuthSnapshot
impl<'de> Deserialize<'de> for LocalAuthSnapshot
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
impl Eq for LocalAuthSnapshot
Source§impl PartialEq for LocalAuthSnapshot
impl PartialEq for LocalAuthSnapshot
Source§impl Serialize for LocalAuthSnapshot
impl Serialize for LocalAuthSnapshot
impl StructuralPartialEq for LocalAuthSnapshot
Auto Trait Implementations§
impl Freeze for LocalAuthSnapshot
impl RefUnwindSafe for LocalAuthSnapshot
impl Send for LocalAuthSnapshot
impl Sync for LocalAuthSnapshot
impl Unpin for LocalAuthSnapshot
impl UnsafeUnpin for LocalAuthSnapshot
impl UnwindSafe for LocalAuthSnapshot
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