pub struct Model {
pub repo: &'static str,
pub revision: &'static str,
pub files: &'static [File],
}Expand description
一个模型(一个 Hugging Face 仓库的一个锁定版本)。
Fields§
§repo: &'static str仓库名,也是本地缓存里的目录名。
revision: &'static str锁定的提交号:内容固定,校验值才有意义。
files: &'static [File]Implementations§
Trait Implementations§
impl Copy for Model
impl Eq for Model
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