pub struct ModelCatalogEntry {
pub provider: String,
pub model_id: String,
pub aliases: Vec<String>,
pub mode: String,
pub max_input_tokens: Option<u64>,
pub max_output_tokens: Option<u64>,
pub deprecation_date: Option<String>,
pub pricing: ModelPricing,
pub capabilities: ModelCapabilities,
pub source: String,
pub source_url: Option<String>,
pub raw: Value,
}Expand description
A single model’s catalog record: identity, limits, pricing, and capability flags.
Fields§
§provider: StringProvider that serves this model (e.g. "openai", "anthropic").
model_id: StringCanonical model identifier within the provider.
aliases: Vec<String>Alternate identifiers that also resolve to this entry in lookups.
mode: StringServing mode for the model (e.g. "chat", "embedding").
max_input_tokens: Option<u64>Maximum number of input (context) tokens, when known.
max_output_tokens: Option<u64>Maximum number of output tokens, when known.
deprecation_date: Option<String>Announced deprecation date, when the provider has published one.
pricing: ModelPricingPer-token pricing for the model.
capabilities: ModelCapabilitiesCapability flags advertised for the model.
source: StringIdentifier of the upstream source this entry was derived from.
source_url: Option<String>Optional URL pointing at the source documentation for this entry.
raw: ValueRaw provider payload preserved verbatim for fields not modeled above.
Trait Implementations§
Source§impl Clone for ModelCatalogEntry
impl Clone for ModelCatalogEntry
Source§fn clone(&self) -> ModelCatalogEntry
fn clone(&self) -> ModelCatalogEntry
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 ModelCatalogEntry
impl Debug for ModelCatalogEntry
Source§impl<'de> Deserialize<'de> for ModelCatalogEntry
impl<'de> Deserialize<'de> for ModelCatalogEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModelCatalogEntry
impl RefUnwindSafe for ModelCatalogEntry
impl Send for ModelCatalogEntry
impl Sync for ModelCatalogEntry
impl Unpin for ModelCatalogEntry
impl UnsafeUnpin for ModelCatalogEntry
impl UnwindSafe for ModelCatalogEntry
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