pub struct ModelSpec {
pub id: &'static str,
pub file: &'static str,
pub url: &'static str,
pub sha256: &'static str,
pub size_bytes: u64,
pub min_ram_mb: u64,
}Expand description
A pinned model: where to fetch it, its checksum, and the RAM it needs.
Fields§
§id: &'static strStable id, e.g. "qwen3-4b-instruct-q4_k_m".
file: &'static strFile name on disk.
url: &'static strPinned download URL (empty until pinned for a release).
sha256: &'static strPinned SHA-256 of the file (empty until pinned — refused if empty).
size_bytes: u64Approximate download size in bytes (for UX).
min_ram_mb: u64Minimum total system RAM (MB) to prefer this model.
Implementations§
Trait Implementations§
impl Eq for ModelSpec
impl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Freeze for ModelSpec
impl RefUnwindSafe for ModelSpec
impl Send for ModelSpec
impl Sync for ModelSpec
impl Unpin for ModelSpec
impl UnsafeUnpin for ModelSpec
impl UnwindSafe for ModelSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.