pub struct ModelSource {
pub kind: SourceKind,
pub path: String,
pub repo: Option<String>,
pub reference: Option<String>,
}Expand description
Where a model’s weights live and how it is identified.
Fields§
§kind: SourceKindThe kind of store the model came from.
path: StringThe on-disk path (or endpoint identifier) of the model.
repo: Option<String>The Hugging Face / Ollama repository, when applicable.
reference: Option<String>The revision/ref within the repository, when applicable.
Implementations§
Source§impl ModelSource
impl ModelSource
Trait Implementations§
Source§impl Clone for ModelSource
impl Clone for ModelSource
Source§impl Debug for ModelSource
impl Debug for ModelSource
Source§impl<'de> Deserialize<'de> for ModelSource
impl<'de> Deserialize<'de> for ModelSource
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 ModelSource
Source§impl Hash for ModelSource
impl Hash for ModelSource
Source§impl PartialEq for ModelSource
impl PartialEq for ModelSource
Source§impl Serialize for ModelSource
impl Serialize for ModelSource
impl StructuralPartialEq for ModelSource
Auto Trait Implementations§
impl Freeze for ModelSource
impl RefUnwindSafe for ModelSource
impl Send for ModelSource
impl Sync for ModelSource
impl Unpin for ModelSource
impl UnsafeUnpin for ModelSource
impl UnwindSafe for ModelSource
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