pub struct ModelsDevModel {
pub id: String,
pub name: Option<String>,
pub family: Option<String>,
pub attachment: Option<bool>,
pub reasoning: Option<bool>,
pub tool_call: Option<bool>,
pub structured_output: Option<bool>,
pub temperature: Option<bool>,
pub open_weights: Option<bool>,
pub limit: Option<ModelsDevLimit>,
pub modalities: Option<ModelsDevModalities>,
}Expand description
Provider-agnostic model facts from models.json / catalog.models.
Fields§
§id: StringCanonical Models.dev model id, such as zhipuai/glm-5.2.
name: Option<String>Human-friendly model name.
family: Option<String>Model family, such as glm, gpt, or claude.
attachment: Option<bool>Whether attachments are accepted.
reasoning: Option<bool>Whether the model supports reasoning.
tool_call: Option<bool>Whether tool calling is supported.
structured_output: Option<bool>Whether structured output is supported.
temperature: Option<bool>Whether temperature is supported.
open_weights: Option<bool>Whether weights are open.
limit: Option<ModelsDevLimit>Token limits.
modalities: Option<ModelsDevModalities>Input/output modalities.
Implementations§
Source§impl ModelsDevModel
impl ModelsDevModel
Sourcepub fn supports_text_chat(&self) -> bool
pub fn supports_text_chat(&self) -> bool
True when the model can be used for normal text chat.
Trait Implementations§
Source§impl Clone for ModelsDevModel
impl Clone for ModelsDevModel
Source§fn clone(&self) -> ModelsDevModel
fn clone(&self) -> ModelsDevModel
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 ModelsDevModel
impl Debug for ModelsDevModel
Source§impl Default for ModelsDevModel
impl Default for ModelsDevModel
Source§fn default() -> ModelsDevModel
fn default() -> ModelsDevModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelsDevModel
impl<'de> Deserialize<'de> for ModelsDevModel
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 ModelsDevModel
impl PartialEq for ModelsDevModel
Source§fn eq(&self, other: &ModelsDevModel) -> bool
fn eq(&self, other: &ModelsDevModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelsDevModel
impl Serialize for ModelsDevModel
impl StructuralPartialEq for ModelsDevModel
Auto Trait Implementations§
impl Freeze for ModelsDevModel
impl RefUnwindSafe for ModelsDevModel
impl Send for ModelsDevModel
impl Sync for ModelsDevModel
impl Unpin for ModelsDevModel
impl UnsafeUnpin for ModelsDevModel
impl UnwindSafe for ModelsDevModel
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