pub struct Model {Show 14 fields
pub id: String,
pub name: String,
pub canonical_slug: Option<String>,
pub created: Option<f64>,
pub description: String,
pub context_length: Option<f64>,
pub hugging_face_id: Option<String>,
pub architecture: ModelArchitecture,
pub top_provider: ModelTopProvider,
pub per_request_limits: Option<ModelPerRequestLimits>,
pub supported_parameters: Vec<String>,
pub default_parameters: Option<ModelDefaultParameters>,
pub pricing: ModelPricing,
pub expiration_date: Option<String>,
}Expand description
A single model available on OpenRouter.
Fields§
§id: StringModel id (e.g. google/gemini-3.1-flash-lite).
name: StringDisplay name.
canonical_slug: Option<String>Stable canonical slug (immutable across renames).
created: Option<f64>Unix-seconds creation timestamp.
description: StringLong description.
context_length: Option<f64>Maximum context window in tokens.
hugging_face_id: Option<String>Hugging Face model id, when published.
architecture: ModelArchitectureModel architecture summary.
top_provider: ModelTopProviderDescription of the top provider serving this model.
per_request_limits: Option<ModelPerRequestLimits>Per-request token limits, when published.
supported_parameters: Vec<String>Supported parameter names.
default_parameters: Option<ModelDefaultParameters>Default sampling parameters published by the provider.
pricing: ModelPricingPricing breakdown.
expiration_date: Option<String>Model retirement date, when scheduled.
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
impl StructuralPartialEq for Model
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