pub enum ConfigSource<T> {
Embedded,
JsonFile(PathBuf),
Explicit(T),
}Expand description
Where to read a model config from.
Replaces the per-family Qwen3ConfigSource, Llama32ConfigSource,
GemmaConfigSource, Qwen35ConfigSource enums.
Variants§
Embedded
Read from GGUF metadata.
JsonFile(PathBuf)
Read from a HuggingFace config.json at this path.
Explicit(T)
Use the supplied config object directly.
Trait Implementations§
Source§impl<T: Clone> Clone for ConfigSource<T>
impl<T: Clone> Clone for ConfigSource<T>
Source§fn clone(&self) -> ConfigSource<T>
fn clone(&self) -> ConfigSource<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ConfigSource<T>
impl<T: Debug> Debug for ConfigSource<T>
Source§impl<T> Default for ConfigSource<T>
impl<T> Default for ConfigSource<T>
Source§fn default() -> ConfigSource<T>
fn default() -> ConfigSource<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ConfigSource<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConfigSource<T>where
T: RefUnwindSafe,
impl<T> Send for ConfigSource<T>where
T: Send,
impl<T> Sync for ConfigSource<T>where
T: Sync,
impl<T> Unpin for ConfigSource<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConfigSource<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConfigSource<T>where
T: UnwindSafe,
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> 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