pub struct ModelInfo {
pub value: String,
pub display_name: String,
pub description: Option<String>,
pub is_default: Option<bool>,
}Expand description
One selectable model as reported by the Claude Code backend. Mirrors
ModelInfo in codeoid/src/protocol/types.ts.
Fields§
§value: StringValue passed to /model and forwarded to the SDK (e.g. "opus[1m]").
display_name: StringHuman label (e.g. "Opus").
description: Option<String>Optional one-line description from the backend.
is_default: Option<bool>True for the backend’s recommended default.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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 ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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