pub struct ModelEntry {
pub id: String,
pub vendor: String,
pub native_id: String,
pub aliases: Vec<String>,
pub capabilities: Vec<String>,
pub context_window: Option<u64>,
pub status: Option<ModelStatus>,
pub note: Option<String>,
}Expand description
One model: the canonical reference this repository uses, the vendor’s own name for it, and its typed capabilities. Capability words are data the catalogue declares — consumers compare against a requirement list, never against a hardcoded name.
Fields§
§id: StringThe canonical id, unique in the catalogue: what sessions, configuration and routing name. Stable even when a vendor renames.
vendor: StringThe vendor that serves it.
native_id: StringThe vendor’s own identifier, verbatim.
aliases: Vec<String>Other names that resolve to this model. Aliases live here and nowhere else.
capabilities: Vec<String>Typed capability words: text, vision, tools, structured_output,
reasoning, streaming, embeddings — the declared vocabulary, open for a
catalogue to extend without a code change.
context_window: Option<u64>The context window, tokens.
status: Option<ModelStatus>The lifecycle standing, when the catalogue declares one. Absent is undeclared: the catalogue admits only facts with provenance, and routing still considers the model, but nothing may say it is available on the catalogue’s behalf.
note: Option<String>One line a person needs when choosing; never pricing — a price the tool cannot verify is a fact it must not state (nothing here fabricates cost data).
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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>,
Source§impl JsonSchema for ModelEntry
impl JsonSchema for ModelEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more