pub struct CachedModel {
pub name: String,
pub version: String,
pub size_bytes: u64,
pub format: ModelFormat,
pub path: PathBuf,
pub last_accessed: SystemTime,
pub access_count: u64,
pub pinned: bool,
}Expand description
Information about a cached model
Fields§
§name: StringModel name/reference
version: StringVersion
size_bytes: u64Size in bytes
format: ModelFormatDetected format
path: PathBufPath to cached file
last_accessed: SystemTimeLast access time
access_count: u64Access count
pinned: boolWhether pinned
Implementations§
Source§impl CachedModel
impl CachedModel
Sourcepub fn size_human(&self) -> String
pub fn size_human(&self) -> String
Get human-readable size
Sourcepub fn quant_type(&self) -> Option<QuantType>
pub fn quant_type(&self) -> Option<QuantType>
Get quantization type if GGUF
Trait Implementations§
Source§impl Clone for CachedModel
impl Clone for CachedModel
Source§fn clone(&self) -> CachedModel
fn clone(&self) -> CachedModel
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 CachedModel
impl RefUnwindSafe for CachedModel
impl Send for CachedModel
impl Sync for CachedModel
impl Unpin for CachedModel
impl UnsafeUnpin for CachedModel
impl UnwindSafe for CachedModel
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