pub struct LoggedIn {
pub org: String,
pub person: String,
pub session: Value,
pub display_name: String,
pub sso_expires_at: Option<i64>,
}Expand description
What a finished login hands back: the session to keep and the name.
Its Debug never shows the session.
Fields§
§org: StringThe account it connected.
person: StringWho logged in.
session: Valuegrabcli’s Session as JSON (secret: keep it sealed).
display_name: StringHow the account is shown: for the real backend, grabcli’s masked
phone (+1••••••••00: the last two digits shown).
sso_expires_at: Option<i64>When the SSO login lapses (unix seconds), if known.
Trait Implementations§
Auto Trait Implementations§
impl Forget for LoggedIn
impl Freeze for LoggedIn
impl RefUnwindSafe for LoggedIn
impl Send for LoggedIn
impl Sync for LoggedIn
impl Unpin for LoggedIn
impl UnsafeUnpin for LoggedIn
impl UnwindSafe for LoggedIn
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