pub struct ModelMeta {
pub id: String,
pub provider: String,
pub name: String,
pub context_window: u32,
pub max_output_tokens: u32,
pub pricing: ModelPricing,
pub capabilities: Capabilities,
}Expand description
Static metadata describing a model’s capabilities and pricing.
Fields§
§id: StringCanonical model identifier (e.g. “claude-sonnet-4-6”).
provider: StringProvider that serves this model (e.g. “anthropic”).
name: StringHuman-readable display name.
context_window: u32Maximum input context in tokens.
max_output_tokens: u32Maximum tokens the model can generate.
pricing: ModelPricingPer-million-token pricing.
capabilities: CapabilitiesFeature flags.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelMeta
impl<'de> Deserialize<'de> for ModelMeta
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 ModelMeta
impl RefUnwindSafe for ModelMeta
impl Send for ModelMeta
impl Sync for ModelMeta
impl Unpin for ModelMeta
impl UnsafeUnpin for ModelMeta
impl UnwindSafe for ModelMeta
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