#[non_exhaustive]pub struct Model {
pub id: Cow<'static, str>,
pub name: Cow<'static, str>,
pub note: Cow<'static, str>,
pub kind: Kind,
pub efforts: Vec<Cow<'static, str>>,
pub is_default: bool,
}Expand description
One model a caller can choose.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Cow<'static, str>Exactly what goes to --model. Passed through verbatim.
name: Cow<'static, str>The vendor’s own display name, for a picker.
note: Cow<'static, str>One line on what it is for. Empty when the vendor offers none.
kind: KindWhether the id tracks a family or names one model.
efforts: Vec<Cow<'static, str>>Reasoning levels this model accepts, in the vendor’s order.
Empty means “not established here”, not “none exist”: Claude Code has an
effort setting of its own, shown in its /model picker, but it is not a
--model value and its levels have not been verified. Kept as strings
for the same reason ids are:
Codex added ultra to some models and not others, and an enum here would
have to be edited before a new level could even be named.
is_default: boolWhether the agent uses this when the caller names no model.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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