pub struct CatalogEntry {
pub provider: String,
pub model_id: String,
pub context_window: Option<u32>,
pub max_output_tokens: Option<u32>,
pub pricing: Option<Pricing>,
pub pricing_tiers: Vec<PricingTier>,
pub supports_thinking: Option<bool>,
}Available on crate feature
model-discovery only.Expand description
A single provider/model capability + pricing row distilled from a feed.
Field shapes mirror ModelCapabilities
so the registry can resolve feed rows and static rows into the same shape.
Fields§
§provider: StringOur provider name (e.g. anthropic, openai, gemini).
model_id: StringThe model identifier as the provider’s chat endpoint expects it.
context_window: Option<u32>Maximum total context window in tokens, when the feed reports it.
max_output_tokens: Option<u32>Maximum output tokens per response, when the feed reports it.
pricing: Option<Pricing>Base pricing distilled from the feed, when present. Applies to a call
whose context stays inside the base band — see pricing_tiers.
pricing_tiers: Vec<PricingTier>Context-tiered pricing, ascending by threshold, when the feed publishes it. Empty for a model priced at one flat rate.
supports_thinking: Option<bool>Whether the model is a reasoning/thinking model, when the feed reports it.
Trait Implementations§
Source§impl Clone for CatalogEntry
impl Clone for CatalogEntry
Source§fn clone(&self) -> CatalogEntry
fn clone(&self) -> CatalogEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CatalogEntry
impl Debug for CatalogEntry
Source§impl PartialEq for CatalogEntry
impl PartialEq for CatalogEntry
impl StructuralPartialEq for CatalogEntry
Auto Trait Implementations§
impl Freeze for CatalogEntry
impl RefUnwindSafe for CatalogEntry
impl Send for CatalogEntry
impl Sync for CatalogEntry
impl Unpin for CatalogEntry
impl UnsafeUnpin for CatalogEntry
impl UnwindSafe for CatalogEntry
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