pub struct DownloadedModel {
pub spec: HuggingFaceModelSpec,
pub files: BTreeMap<String, PathBuf>,
}Expand description
Data type for downloaded model.
Fields§
§spec: HuggingFaceModelSpecThe spec value.
files: BTreeMap<String, PathBuf>The files value.
Implementations§
Trait Implementations§
Source§impl Clone for DownloadedModel
impl Clone for DownloadedModel
Source§fn clone(&self) -> DownloadedModel
fn clone(&self) -> DownloadedModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DownloadedModel
impl RefUnwindSafe for DownloadedModel
impl Send for DownloadedModel
impl Sync for DownloadedModel
impl Unpin for DownloadedModel
impl UnsafeUnpin for DownloadedModel
impl UnwindSafe for DownloadedModel
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