#[non_exhaustive]pub struct UserModel {Show 17 fields
pub id: String,
pub canonical_slug: String,
pub hugging_face_id: Option<String>,
pub name: String,
pub created: f64,
pub description: Option<String>,
pub pricing: PublicPricing,
pub context_length: Option<f64>,
pub architecture: ModelArchitecture,
pub top_provider: TopProviderInfo,
pub per_request_limits: Option<PerRequestLimits>,
pub supported_parameters: Vec<String>,
pub supported_voices: Option<Vec<String>>,
pub default_parameters: Option<Value>,
pub expiration_date: Option<String>,
pub reasoning: Option<ModelReasoning>,
pub extra: HashMap<String, Value>,
}Expand description
Model payload returned by GET /models/user.
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: String§hugging_face_id: Option<String>§name: String§created: f64§description: Option<String>§pricing: PublicPricing§context_length: Option<f64>§architecture: ModelArchitecture§top_provider: TopProviderInfo§per_request_limits: Option<PerRequestLimits>§supported_parameters: Vec<String>§supported_voices: Option<Vec<String>>§default_parameters: Option<Value>§expiration_date: Option<String>§reasoning: Option<ModelReasoning>§extra: HashMap<String, Value>Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserModel
impl<'de> Deserialize<'de> for UserModel
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 UserModel
impl RefUnwindSafe for UserModel
impl Send for UserModel
impl Sync for UserModel
impl Unpin for UserModel
impl UnsafeUnpin for UserModel
impl UnwindSafe for UserModel
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