pub struct InstalledModel {
pub name: String,
pub size: u64,
pub parameter_size: Option<String>,
pub quantization_level: Option<String>,
}Expand description
An installed model with the metadata a model-manager UI shows — the
neutral shape returned by Harness::list_installed_models. Richer than
HarnessModel (the picker’s name-only entry): on-disk size in bytes plus
the parameter count / quantization where the backend reports them.
Fields§
§name: String§size: u64On-disk size in bytes.
parameter_size: Option<String>e.g. "3.2B"; None when the backend doesn’t report it.
quantization_level: Option<String>e.g. "Q4_K_M"; None when the backend doesn’t report it.
Trait Implementations§
Source§impl Clone for InstalledModel
impl Clone for InstalledModel
Source§fn clone(&self) -> InstalledModel
fn clone(&self) -> InstalledModel
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 InstalledModel
impl Debug for InstalledModel
impl Eq for InstalledModel
Source§impl PartialEq for InstalledModel
impl PartialEq for InstalledModel
Source§impl Serialize for InstalledModel
impl Serialize for InstalledModel
impl StructuralPartialEq for InstalledModel
Auto Trait Implementations§
impl Freeze for InstalledModel
impl RefUnwindSafe for InstalledModel
impl Send for InstalledModel
impl Sync for InstalledModel
impl Unpin for InstalledModel
impl UnsafeUnpin for InstalledModel
impl UnwindSafe for InstalledModel
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