pub struct Row {
pub provider: ProviderId,
pub label: Option<String>,
pub email: String,
pub id: String,
pub account_uuid: String,
pub organization_uuid: Option<String>,
pub signed_in: bool,
pub parked: Option<Park>,
pub usage: Option<Snapshot>,
pub stale: Option<Stale>,
}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§id: StringWhat the account’s readings and budget are filed under. Empty where
Row::account_uuid is.
account_uuid: String§organization_uuid: Option<String>The Claude organisation the login is for. None for another tool’s account.
signed_in: bool§parked: Option<Park>§usage: Option<Snapshot>§stale: Option<Stale>Implementations§
Source§impl Row
impl Row
Sourcepub fn lasts(&self, now: i64) -> Option<Lasts<'_>>
pub fn lasts(&self, now: i64) -> Option<Lasts<'_>>
How long this account lasts as of now, from its limits’ paces: the question this
whole tool exists to answer is which account to use next, and a share alone does not
answer it. 73% of a weekly limit is plenty on Saturday and a warning on Monday. An
account not in use is not being used, so it lasts until its first reset.
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.