pub struct Model {
pub billing: Option<ModelBilling>,
pub capabilities: ModelCapabilities,
pub default_reasoning_effort: Option<String>,
pub id: String,
pub model_picker_category: Option<ModelPickerCategory>,
pub model_picker_price_category: Option<ModelPickerPriceCategory>,
pub name: String,
pub policy: Option<ModelPolicy>,
pub supported_reasoning_efforts: Option<Vec<String>>,
}Expand description
Schema for the Model type.
Fields§
§billing: Option<ModelBilling>Billing information
capabilities: ModelCapabilitiesModel capabilities and limits
default_reasoning_effort: Option<String>Default reasoning effort level (only present if model supports reasoning effort)
id: StringModel identifier (e.g., “claude-sonnet-4.5”)
model_picker_category: Option<ModelPickerCategory>Model capability category for grouping in the model picker
model_picker_price_category: Option<ModelPickerPriceCategory>Relative cost tier for token-based billing users
name: StringDisplay name
policy: Option<ModelPolicy>Policy state (if applicable)
supported_reasoning_efforts: Option<Vec<String>>Supported reasoning effort levels (only present if model supports reasoning effort)
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 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