pub struct CatalogStats {
pub total_models: usize,
pub total_size_bytes: u64,
pub local_count: usize,
pub remote_count: usize,
pub huggingface_count: usize,
pub by_task: HashMap<String, usize>,
pub unique_architectures: usize,
pub unique_tags: usize,
}Expand description
Catalog statistics
Fields§
§total_models: usizeTotal number of models
total_size_bytes: u64Total size in bytes
local_count: usizeLocal models count
remote_count: usizeRemote models count
huggingface_count: usizeHuggingFace models count
by_task: HashMap<String, usize>Models by task
unique_architectures: usizeNumber of unique architectures
Number of unique tags
Implementations§
Source§impl CatalogStats
impl CatalogStats
Sourcepub fn total_size_gb(&self) -> f64
pub fn total_size_gb(&self) -> f64
Get total size in GB
Trait Implementations§
Source§impl Clone for CatalogStats
impl Clone for CatalogStats
Source§fn clone(&self) -> CatalogStats
fn clone(&self) -> CatalogStats
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 moreSource§impl Debug for CatalogStats
impl Debug for CatalogStats
Source§impl<'de> Deserialize<'de> for CatalogStats
impl<'de> Deserialize<'de> for CatalogStats
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 CatalogStats
impl RefUnwindSafe for CatalogStats
impl Send for CatalogStats
impl Sync for CatalogStats
impl Unpin for CatalogStats
impl UnsafeUnpin for CatalogStats
impl UnwindSafe for CatalogStats
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