pub struct ModelInfo {
pub name: String,
pub display_name: String,
pub description: String,
pub capabilities: ModelCapabilities,
pub pricing: PricingInfo,
pub performance: PerformanceMetrics,
pub metadata: HashMap<String, String>,
}
Expand description
Model information structure for custom model management
This struct provides detailed information about AI models, allowing developers to build custom model managers and arrays.
Fields§
§name: String
Model name/identifier
display_name: String
Display name for user interface
description: String
Model description
capabilities: ModelCapabilities
Model capabilities
pricing: PricingInfo
Pricing information
performance: PerformanceMetrics
Performance metrics
metadata: HashMap<String, String>
Provider-specific metadata
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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 ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnwindSafe for ModelInfo
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