pub struct ProfileAuth {
pub schema: u32,
pub auth_mode: String,
pub active_profile_id: Option<String>,
pub last_login: Option<LastLogin>,
}Expand description
Authentication state stored in auth.json.
Fields§
§schema: u32§auth_mode: String§active_profile_id: Option<String>ID of the currently active profile, if any.
last_login: Option<LastLogin>Last successful provider authentication proof. This is not updated by local profile switching.
Trait Implementations§
Source§impl Clone for ProfileAuth
impl Clone for ProfileAuth
Source§fn clone(&self) -> ProfileAuth
fn clone(&self) -> ProfileAuth
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 ProfileAuth
impl Debug for ProfileAuth
Source§impl Default for ProfileAuth
impl Default for ProfileAuth
Source§impl<'de> Deserialize<'de> for ProfileAuth
impl<'de> Deserialize<'de> for ProfileAuth
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 ProfileAuth
impl RefUnwindSafe for ProfileAuth
impl Send for ProfileAuth
impl Sync for ProfileAuth
impl Unpin for ProfileAuth
impl UnsafeUnpin for ProfileAuth
impl UnwindSafe for ProfileAuth
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