pub enum RepoType {
Model,
Dataset,
Space,
}
Expand description
The type of repo to interact with
Variants§
Model
This is a model, usually it consists of weight files and some configuration files
Dataset
This is a dataset, usually contains data within parquet files
Space
This is a space, usually a demo showcashing a given model or dataset
Implementations§
Source§impl RepoType
impl RepoType
Sourcepub fn to_path_part(&self) -> &'static str
pub fn to_path_part(&self) -> &'static str
Returns the root directory name for this repository type in the hub and local cache.
§Examples
use models_hub::RepoType;
assert_eq!(RepoType::Model.root_dir(), "models");
assert_eq!(RepoType::Dataset.root_dir(), "datasets");
assert_eq!(RepoType::Space.root_dir(), "spaces");
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoType
impl RefUnwindSafe for RepoType
impl Send for RepoType
impl Sync for RepoType
impl Unpin for RepoType
impl UnwindSafe for RepoType
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