pub struct ParsedRef {
pub name: String,
pub variant: Option<String>,
pub quantization: Option<String>,
}Expand description
Parsed model reference from alias format
Fields§
§name: StringModel name (alias or full name)
variant: Option<String>Size variant (e.g., “8b”, “70b”)
quantization: Option<String>Quantization tag (e.g., “q4”, “q8”)
Implementations§
Source§impl ParsedRef
impl ParsedRef
Sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parse a model reference string
Formats:
name-> name onlyname:variant-> name with variantname:variant-quant-> name with variant and quantizationname-quant-> name with quantization (no variant)scheme://path-> full URI (not parsed as alias)
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Format as string
Trait Implementations§
impl Eq for ParsedRef
impl StructuralPartialEq for ParsedRef
Auto Trait Implementations§
impl Freeze for ParsedRef
impl RefUnwindSafe for ParsedRef
impl Send for ParsedRef
impl Sync for ParsedRef
impl Unpin for ParsedRef
impl UnsafeUnpin for ParsedRef
impl UnwindSafe for ParsedRef
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<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§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.