pub struct ModelEntry {
pub description: String,
pub provider: String,
pub claude: Option<String>,
pub codex: Option<String>,
pub opencode: Option<String>,
pub cursor: Option<String>,
}Expand description
A single model entry in the registry.
Contains metadata (description, provider) and per-agent model ID mappings.
Not every agent needs a mapping — only those that support the model.
Fields§
§description: String§provider: String§claude: Option<String>Model ID for Claude Code (e.g. claude-sonnet-4-5-20250929).
codex: Option<String>Model ID for Codex CLI.
opencode: Option<String>Model ID for OpenCode CLI.
cursor: Option<String>Model ID for Cursor CLI.
Implementations§
Source§impl ModelEntry
impl ModelEntry
Sourcepub fn agent_model(&self, kind: AgentKind) -> Option<&str>
pub fn agent_model(&self, kind: AgentKind) -> Option<&str>
Get the model ID string for the given agent, if this model supports that agent.
Sourcepub fn supported_agents(&self) -> Vec<AgentKind>
pub fn supported_agents(&self) -> Vec<AgentKind>
Return all agent kinds that have a mapping in this entry.
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ModelEntry
impl Debug for ModelEntry
Source§impl Default for ModelEntry
impl Default for ModelEntry
Source§fn default() -> ModelEntry
fn default() -> ModelEntry
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelEntry
impl PartialEq for ModelEntry
Source§impl Serialize for ModelEntry
impl Serialize for ModelEntry
impl StructuralPartialEq for ModelEntry
Auto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnwindSafe for ModelEntry
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<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