Skip to main content

DiscoveredModel

Struct DiscoveredModel 

Source
pub struct DiscoveredModel {
Show 13 fields 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 tool_capable_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: String

The display name (e.g. llama3.2:latest).

§source: ModelSource

Where 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: ExecutionMode

How the model executes (streaming vs one-shot job).

§footprint_bytes: i64

The 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.

§tool_capable_hint: Option<bool>

Whether the model’s chat template supports tool calling, when the store let it be read. None means undetermined.

§stop_tokens_hint: Option<Vec<String>>

Stop tokens the store recorded.

§downloading: bool

Whether the model is still downloading (weights incomplete).

Implementations§

Source§

impl DiscoveredModel

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for DiscoveredModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DiscoveredModel

Source§

fn eq(&self, other: &DiscoveredModel) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DiscoveredModel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.