pub struct FetchResult {
pub path: PathBuf,
pub format: ModelFormat,
pub size_bytes: u64,
pub cache_hit: bool,
pub reference: String,
pub resolved_uri: String,
pub hash: String,
}Expand description
Result of a model fetch operation
Fields§
§path: PathBufPath to the cached model file
format: ModelFormatDetected model format
size_bytes: u64Model size in bytes
cache_hit: boolWhether this was a cache hit
reference: StringOriginal reference used
resolved_uri: StringResolved URI
hash: StringContent hash
Implementations§
Source§impl FetchResult
impl FetchResult
Sourcepub fn size_human(&self) -> String
pub fn size_human(&self) -> String
Get human-readable size
Sourcepub fn is_quantized(&self) -> bool
pub fn is_quantized(&self) -> bool
Check if model is quantized
Sourcepub fn quant_type(&self) -> Option<QuantType>
pub fn quant_type(&self) -> Option<QuantType>
Get quantization type if available
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FetchResult
impl RefUnwindSafe for FetchResult
impl Send for FetchResult
impl Sync for FetchResult
impl Unpin for FetchResult
impl UnsafeUnpin for FetchResult
impl UnwindSafe for FetchResult
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