pub struct ModelDeletionPreview {
pub model_id: String,
pub name: String,
pub kind: SourceKind,
pub paths: Vec<String>,
pub bytes_estimate: i64,
pub via_daemon: bool,
pub missing: bool,
}Expand description
What deleting a model would touch: the files (or a daemon delete), and an estimate of the space it would free.
Fields§
§model_id: StringThe model’s stable id.
name: StringThe name to show.
kind: SourceKindThe model’s source kind.
paths: Vec<String>The filesystem paths that would be removed (empty for a daemon delete).
bytes_estimate: i64The estimated bytes freed.
via_daemon: boolWhether the delete goes through the Ollama daemon.
missing: boolWhether the model’s weights are already missing from disk.
Trait Implementations§
Source§impl Clone for ModelDeletionPreview
impl Clone for ModelDeletionPreview
Source§impl Debug for ModelDeletionPreview
impl Debug for ModelDeletionPreview
impl Eq for ModelDeletionPreview
Source§impl PartialEq for ModelDeletionPreview
impl PartialEq for ModelDeletionPreview
impl StructuralPartialEq for ModelDeletionPreview
Auto Trait Implementations§
impl Freeze for ModelDeletionPreview
impl RefUnwindSafe for ModelDeletionPreview
impl Send for ModelDeletionPreview
impl Sync for ModelDeletionPreview
impl Unpin for ModelDeletionPreview
impl UnsafeUnpin for ModelDeletionPreview
impl UnwindSafe for ModelDeletionPreview
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