#[non_exhaustive]pub struct Model {Show 20 fields
pub id: String,
pub canonical_slug: Option<String>,
pub hugging_face_id: Option<String>,
pub name: String,
pub created: f64,
pub description: String,
pub context_length: Option<f64>,
pub architecture: Architecture,
pub top_provider: TopProvider,
pub pricing: Pricing,
pub per_request_limits: Option<HashMap<String, String>>,
pub supported_parameters: Vec<String>,
pub supported_voices: Option<Vec<String>>,
pub default_parameters: Option<Value>,
pub expiration_date: Option<String>,
pub knowledge_cutoff: Option<String>,
pub links: Option<ModelLinks>,
pub benchmarks: Option<ModelBenchmarks>,
pub reasoning: Option<ModelReasoning>,
pub extra: HashMap<String, Value>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§canonical_slug: Option<String>§hugging_face_id: Option<String>§name: String§created: f64§description: String§context_length: Option<f64>§architecture: Architecture§top_provider: TopProvider§pricing: Pricing§per_request_limits: Option<HashMap<String, String>>§supported_parameters: Vec<String>§supported_voices: Option<Vec<String>>§default_parameters: Option<Value>§expiration_date: Option<String>§knowledge_cutoff: Option<String>§links: Option<ModelLinks>§benchmarks: Option<ModelBenchmarks>§reasoning: Option<ModelReasoning>§extra: HashMap<String, Value>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