pub struct Row {
pub provider: ProviderId,
pub label: Option<String>,
pub email: String,
pub account_uuid: String,
pub signed_in: bool,
pub parked: Option<Park>,
pub usage: Option<Snapshot>,
pub stale: Option<Stale>,
pub runway: Runway,
}Fields§
§provider: ProviderIdWhich tool this account belongs to, or whose live login this row is.
Every row has one, including a login nobody has enrolled and a login that could not
be read, so a front end can always say which tool a row is about and what to type to
act on it. A hint that said pitboard enroll work --sign-in about a Codex account
would have enrolled a Claude Code one.
label: Option<String>None for a login nothing has enrolled: one that is signed in, or one pitboard
could not pin on any account (see Row::unplaced).
email: String§account_uuid: String§signed_in: bool§parked: Option<Park>§usage: Option<Snapshot>§stale: Option<Stale>§runway: RunwayHow long this account lasts, from what its limits have been doing.
The question this whole tool exists to answer is which account to use next, and two instantaneous percentages do not answer it: 73% of a weekly limit means nothing without knowing whether it was 40% this morning.
Implementations§
Source§impl Row
impl Row
Sourcepub fn switchable(&self, now: i64) -> bool
pub fn switchable(&self, now: i64) -> bool
Whether pitboard use would switch to it now.
Sourcepub fn key(&self) -> Option<Key>
pub fn key(&self) -> Option<Key>
The account, the way pitboard tells accounts apart. None for a row nothing has
enrolled.
Sourcepub fn explanation(&self) -> Option<&'static str>
pub fn explanation(&self) -> Option<&'static str>
What to tell a person about Row::stale, in the words of this row’s own tool.
Sourcepub fn unplaced(&self) -> bool
pub fn unplaced(&self) -> bool
A tool’s live login that pitboard could not pin on any account: one it could not
read, or read and could not use. It has no email and no account id, and nothing to
type about it but pitboard doctor, so a front end says what it is rather than
showing it as an account nobody has enrolled.