pub struct HubModel {Show 23 fields
pub id: String,
pub name: String,
pub author: String,
pub arch: String,
pub domain: String,
pub params: String,
pub verified: bool,
pub staff: bool,
pub supports_thinking: bool,
pub max_context_tokens: u32,
pub num_layers: u32,
pub license: String,
pub tags: Vec<String>,
pub formats: Vec<HubFormat>,
pub capabilities: Vec<String>,
pub downloads: u64,
pub stars: u64,
pub updated_at: String,
pub latest_version: String,
pub description: String,
pub version_history: Vec<HubVersion>,
pub download_options: Vec<DownloadOption>,
pub hardware: Hardware,
}Expand description
A model in the Hub registry. Camel-cased for the frontend; loaded from
hub_catalog.json, the real Hub service will serve the same shape.
Fields§
§id: String§name: String§arch: String§domain: String§params: StringParameter count label, e.g. 14B, 30B-A3B, 335M.
verified: bool§staff: bool§supports_thinking: boolWhether the model has a “thinking”/reasoning mode that can be toggled off (e.g. Qwen3). Gates the Enable-Thinking control in the Load panel.
max_context_tokens: u32Maximum context window the model supports (drives the context slider’s upper bound + the “supports up to N tokens” hint). 0 = unknown.
num_layers: u32Total transformer layers (drives the GPU-offload slider max). 0 = unknown.
license: StringSPDX-ish license id, e.g. apache-2.0 (display + filter).
Free-form tags fed into search + filtering.
formats: Vec<HubFormat>§capabilities: Vec<String>Capability tags: code | tool_use | reasoning | vision | embedding.
downloads: u64§stars: u64§updated_at: String§latest_version: String§description: String§version_history: Vec<HubVersion>§download_options: Vec<DownloadOption>§hardware: HardwareTrait Implementations§
Source§impl<'de> Deserialize<'de> for HubModel
impl<'de> Deserialize<'de> for HubModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HubModel
impl RefUnwindSafe for HubModel
impl Send for HubModel
impl Sync for HubModel
impl Unpin for HubModel
impl UnsafeUnpin for HubModel
impl UnwindSafe for HubModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more