pub enum VendorSnapshot {
Show 25 variants
Anthropic(AnthropicSnapshot),
Openai(OpenAiSnapshot),
Copilot(Snapshot),
Zai(ZaiSnapshot),
Openrouter(OpenRouterSnapshot),
Deepseek(DeepseekSnapshot),
Kimi(KimiSnapshot),
Kilo(KiloSnapshot),
Novita(NovitaSnapshot),
Moonshot(MoonshotSnapshot),
Grok(GrokSnapshot),
SuperGrok(SuperGrokSnapshot),
Grokbot(GrokbotSnapshot),
AnthropicApi(AnthropicApiSnapshot),
Antigravity(AntigravitySnapshot),
Cursor(CursorSnapshot),
Minimax(MinimaxSnapshot),
Kiro(KiroSnapshot),
NousResearch(AccountSnapshot),
OpenCodeGo(Usage),
CommandCode(Snapshot),
Ollama(OllamaSnapshot),
OrcaRouter(OrcaRouterSnapshot),
ModelStudio(ModelStudioSnapshot),
Custom(CustomSnapshot),
}Expand description
Discriminated union of vendor-specific snapshots. The widget and TUI match on this to pick a renderer.
Variants§
Anthropic(AnthropicSnapshot)
Openai(OpenAiSnapshot)
Copilot(Snapshot)
Zai(ZaiSnapshot)
Openrouter(OpenRouterSnapshot)
Deepseek(DeepseekSnapshot)
Kimi(KimiSnapshot)
Kilo(KiloSnapshot)
Novita(NovitaSnapshot)
Moonshot(MoonshotSnapshot)
Grok(GrokSnapshot)
SuperGrok(SuperGrokSnapshot)
Grokbot(GrokbotSnapshot)
AnthropicApi(AnthropicApiSnapshot)
Antigravity(AntigravitySnapshot)
Cursor(CursorSnapshot)
Minimax(MinimaxSnapshot)
Kiro(KiroSnapshot)
NousResearch(AccountSnapshot)
OpenCodeGo(Usage)
CommandCode(Snapshot)
Ollama(OllamaSnapshot)
OrcaRouter(OrcaRouterSnapshot)
ModelStudio(ModelStudioSnapshot)
Custom(CustomSnapshot)
A [[custom]] provider. Which one is not in the snapshot: the caller
that fetched it holds the CustomProviderConfig, and the cache
directory is keyed by its id.
Implementations§
Source§impl VendorSnapshot
impl VendorSnapshot
Sourcepub fn reset_credits(&self) -> Option<&ResetCredits>
pub fn reset_credits(&self) -> Option<&ResetCredits>
Banked, user-redeemable resets, for the vendors that have them.
The one place this table lives. It had already been written twice —
once for the report’s reset_credits field and once for the
expiry notifications — and adding a third provider to only one of them
is a silent half-feature: the sidebar lists a grant the notifier never
warns about. None is the honest answer for every other vendor; it is
not the same as an empty ResetCredits, which means “this provider
banks resets and you currently hold none”.
Trait Implementations§
Source§impl Clone for VendorSnapshot
impl Clone for VendorSnapshot
Source§impl Debug for VendorSnapshot
impl Debug for VendorSnapshot
impl Eq for VendorSnapshot
Source§impl PartialEq for VendorSnapshot
impl PartialEq for VendorSnapshot
impl StructuralPartialEq for VendorSnapshot
Auto Trait Implementations§
impl Freeze for VendorSnapshot
impl RefUnwindSafe for VendorSnapshot
impl Send for VendorSnapshot
impl Sync for VendorSnapshot
impl Unpin for VendorSnapshot
impl UnsafeUnpin for VendorSnapshot
impl UnwindSafe for VendorSnapshot
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
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
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> ⓘ
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> ⓘ
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