pub struct Account {
pub label: String,
pub account_uuid: String,
pub email: String,
pub parked: Option<Park>,
pub last_used_at: Option<i64>,
pub detail: Detail,
}Fields§
§label: String§account_uuid: String§email: String§parked: Option<Park>§last_used_at: Option<i64>When this account was last switched to, in epoch seconds.
pitboard renews a parked login for as long as the account is enrolled, so an account
somebody enrolled once and never came back to keeps a live, continuously rotated
refresh token on the machine indefinitely. Nothing said so, and nothing asked.
Recording this is what lets doctor say it.
None on an account enrolled before this was recorded, and on one that has never
been switched to.
detail: DetailWhich tool’s login this is, and whatever only that tool keeps.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
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 Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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