pub struct ModelInfo {Show 21 fields
pub id: String,
pub name: String,
pub description: Option<String>,
pub author: Option<String>,
pub status: ModelStatus,
pub size_bytes: u64,
pub format: String,
pub download_source: Option<String>,
pub filename: Option<String>,
pub installed_version: Option<String>,
pub last_updated: Option<DateTime<Utc>>,
pub tags: Vec<String>,
pub compatibility_score: Option<f32>,
pub parameters: Option<String>,
pub context_length: Option<u64>,
pub provider: Option<String>,
pub total_shards: Option<u32>,
pub shard_filenames: Vec<String>,
pub downloads: u64,
pub is_gated: bool,
pub pricing: Option<ModelPricing>,
}Expand description
Information about a model in the registry
Fields§
§id: String§name: String§description: Option<String>§status: ModelStatus§size_bytes: u64§format: String§download_source: Option<String>§filename: Option<String>Specific filename to download (for HuggingFace models with non-standard naming)
installed_version: Option<String>§last_updated: Option<DateTime<Utc>>§compatibility_score: Option<f32>§parameters: Option<String>Parameter count string (e.g., “7B”, “70B”, “671B”)
context_length: Option<u64>Context length in tokens
provider: Option<String>Provider name (for OpenRouter models)
total_shards: Option<u32>Total number of shards for sharded models (None for single-file models)
shard_filenames: Vec<String>List of all shard filenames for sharded models
downloads: u64Download count (for HuggingFace models)
is_gated: boolWhether this HuggingFace model requires access approval from the repo owner
pricing: Option<ModelPricing>Pricing info for OpenRouter API models (None for offline/HF models)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelInfo
impl<'de> Deserialize<'de> for ModelInfo
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 ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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