pub struct TabId {
pub vendor: VendorId,
pub account: Option<String>,
pub desktop: bool,
}Expand description
Identity of one TUI tab. Usually a whole vendor; Claude and OpenRouter can
also name a configured account. account: None is a plain vendor tab or
that vendor’s default account.
desktop marks an account whose usage comes from the Claude Desktop app’s
own token rather than a claude CLI credential.
Fields§
§vendor: VendorId§account: Option<String>§desktop: boolImplementations§
Source§impl TabId
impl TabId
Sourcepub fn account(label: impl Into<String>) -> Self
pub fn account(label: impl Into<String>) -> Self
A named Anthropic account tab ([[anthropic.accounts]] label).
Sourcepub fn account_for(vendor: VendorId, label: impl Into<String>) -> Self
pub fn account_for(vendor: VendorId, label: impl Into<String>) -> Self
A named account for a vendor that supports account arrays.
Sourcepub fn desktop_account(label: impl Into<String>) -> Self
pub fn desktop_account(label: impl Into<String>) -> Self
An Anthropic account whose usage is read from the Claude Desktop app’s
own token store (a saved ~/.claude-acc/profiles/<label> account).
Trait Implementations§
impl Eq for TabId
impl StructuralPartialEq for TabId
Auto Trait Implementations§
impl Freeze for TabId
impl RefUnwindSafe for TabId
impl Send for TabId
impl Sync for TabId
impl Unpin for TabId
impl UnsafeUnpin for TabId
impl UnwindSafe for TabId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more