pub struct ModelSpec {
pub id: String,
pub label: String,
pub repo: String,
pub file: String,
pub size: u64,
pub sha256: Option<String>,
}Expand description
A downloadable GGUF.
Fields§
§id: StringShort id, such as gemma-4-e4b.
label: String§repo: StringHugging Face repo (owner/name).
file: String§size: u64§sha256: Option<String>Lower-case hex SHA-256 of the file, when known.
Implementations§
Source§impl ModelSpec
impl ModelSpec
Sourcepub fn from_repo_file(repo: &str, file: &RepoFile) -> Result<Self>
pub fn from_repo_file(repo: &str, file: &RepoFile) -> Result<Self>
A spec for one file of repo, as listed by repo_files. The id is the file stem.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelSpec
impl<'de> Deserialize<'de> for ModelSpec
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
impl Eq for ModelSpec
impl StructuralPartialEq for ModelSpec
Auto Trait Implementations§
impl Forget for ModelSpec
impl Freeze for ModelSpec
impl Move 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