pub struct DiscoveredModel {
pub name: String,
pub source: ModelSource,
pub modality_hint: Option<Modality>,
pub capabilities_hint: Vec<Capability>,
pub execution_hint: ExecutionMode,
pub footprint_bytes: i64,
pub primary_weight_path: Option<String>,
pub diagnostics: Vec<String>,
pub context_length_hint: Option<i64>,
pub has_chat_template_hint: Option<bool>,
pub stop_tokens_hint: Option<Vec<String>>,
pub downloading: bool,
}Expand description
A model a scanner found on disk, as hints (not yet a resolved record). The
*_hint fields are best-effort; identification refines or overrides them.
Fields§
§name: StringThe display name (e.g. llama3.2:latest).
source: ModelSourceWhere the weights live and what kind of store they came from.
modality_hint: Option<Modality>The guessed modality, if the store hinted one.
capabilities_hint: Vec<Capability>The guessed capabilities.
execution_hint: ExecutionModeHow the model executes (streaming vs one-shot job).
footprint_bytes: i64The on-disk footprint in bytes.
primary_weight_path: Option<String>The primary weight file, if identified.
diagnostics: Vec<String>Free-text notes about this specific model.
context_length_hint: Option<i64>A context-window hint, if the store recorded one.
has_chat_template_hint: Option<bool>Whether the store recorded a chat template.
stop_tokens_hint: Option<Vec<String>>Stop tokens the store recorded.
downloading: boolWhether the model is still downloading (weights incomplete).
Implementations§
Source§impl DiscoveredModel
impl DiscoveredModel
Sourcepub fn new(name: impl Into<String>, source: ModelSource) -> Self
pub fn new(name: impl Into<String>, source: ModelSource) -> Self
A discovered model with just a name and source; hints default to empty.
Trait Implementations§
Source§impl Clone for DiscoveredModel
impl Clone for DiscoveredModel
Source§fn clone(&self) -> DiscoveredModel
fn clone(&self) -> DiscoveredModel
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 DiscoveredModel
impl Debug for DiscoveredModel
Source§impl PartialEq for DiscoveredModel
impl PartialEq for DiscoveredModel
impl StructuralPartialEq for DiscoveredModel
Auto Trait Implementations§
impl Freeze for DiscoveredModel
impl RefUnwindSafe for DiscoveredModel
impl Send for DiscoveredModel
impl Sync for DiscoveredModel
impl Unpin for DiscoveredModel
impl UnsafeUnpin for DiscoveredModel
impl UnwindSafe for DiscoveredModel
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