pub struct ModelInfo {
pub id: String,
pub name: String,
pub parameters: String,
pub quantization: String,
pub loaded: bool,
pub memory_bytes: u64,
}Expand description
Metadata about an available AI model.
Fields§
§id: StringUnique identifier
name: StringHuman-readable model name
parameters: StringParameter count label (“8B”, “3B”)
quantization: StringQuantization level (“Q4_K_M”, “F16”)
loaded: boolWhether the model is currently loaded
memory_bytes: u64Memory usage in bytes (0 if not loaded)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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