pub struct Model {Show 21 fields
pub id: Uuid,
pub name: String,
pub display_name: String,
pub description: Option<String>,
pub version: String,
pub model_type: ModelType,
pub size_category: ModelSize,
pub file_size: u64,
pub provider: String,
pub license: Option<String>,
pub tags: Vec<String>,
pub languages: Vec<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub file_path: Option<String>,
pub checksum: Option<String>,
pub download_url: Option<String>,
pub config: HashMap<String, Value>,
pub rating: Option<f32>,
pub download_count: u64,
pub is_official: bool,
}Expand description
模型信息
Fields§
§id: Uuid模型ID
name: String模型名称
display_name: String模型显示名称
description: Option<String>模型描述
version: String模型版本
model_type: ModelType模型类型
size_category: ModelSize模型大小分类
file_size: u64模型文件大小 (字节)
provider: String模型提供商
license: Option<String>模型许可证
模型标签
languages: Vec<String>支持的语言
created_at: DateTime<Utc>创建时间
updated_at: DateTime<Utc>更新时间
file_path: Option<String>模型文件路径
checksum: Option<String>模型检验和
download_url: Option<String>下载URL
config: HashMap<String, Value>模型配置参数
rating: Option<f32>模型评分
download_count: u64下载次数
is_official: bool是否为官方模型
Implementations§
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