pub struct Model {Show 13 fields
pub id: String,
pub name: String,
pub attachment: bool,
pub reasoning: bool,
pub temperature: bool,
pub tool_call: bool,
pub knowledge: Option<String>,
pub release_date: Option<String>,
pub last_updated: Option<String>,
pub modalities: Modalities,
pub open_weights: bool,
pub cost: Option<ModelCost>,
pub limit: ModelLimit,
}Expand description
Model information from the models.dev API.
Fields§
§id: StringThe unique identifier for the model.
name: StringThe display name of the model.
attachment: boolWhether the model supports attachments.
reasoning: boolWhether the model supports reasoning.
temperature: boolWhether the model supports temperature.
tool_call: boolWhether the model supports tool calls.
knowledge: Option<String>Knowledge cutoff date.
release_date: Option<String>Release date.
last_updated: Option<String>Last updated date.
modalities: ModalitiesSupported modalities for this model.
open_weights: boolWhether the model uses open weights.
cost: Option<ModelCost>Cost information for using this model.
limit: ModelLimitLimits for this 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
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin 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