pub struct ModelConfig {Show 13 fields
pub id: String,
pub name: String,
pub family: String,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub attachment: bool,
pub reasoning: bool,
pub tool_call: bool,
pub temperature: bool,
pub release_date: Option<String>,
pub modalities: ModelModalities,
pub cost: ModelCost,
pub limit: ModelLimit,
}Expand description
Model configuration
Fields§
§id: StringModel ID (e.g., “claude-sonnet-4-20250514”)
name: StringDisplay name
family: StringModel family (e.g., “claude-sonnet”)
api_key: Option<String>Per-model API key override
base_url: Option<String>Per-model base URL override
attachment: boolSupports file attachments
reasoning: boolSupports reasoning/thinking
tool_call: boolSupports tool calling
temperature: boolSupports temperature setting
release_date: Option<String>Release date
modalities: ModelModalitiesInput/output modalities
cost: ModelCostCost information
limit: ModelLimitToken limits
Trait Implementations§
Source§impl Clone for ModelConfig
impl Clone for ModelConfig
Source§fn clone(&self) -> ModelConfig
fn clone(&self) -> ModelConfig
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 ModelConfig
impl Debug for ModelConfig
Source§impl<'de> Deserialize<'de> for ModelConfig
impl<'de> Deserialize<'de> for ModelConfig
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 ModelConfig
impl RefUnwindSafe for ModelConfig
impl Send for ModelConfig
impl Sync for ModelConfig
impl Unpin for ModelConfig
impl UnsafeUnpin for ModelConfig
impl UnwindSafe for ModelConfig
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