pub struct ModelBundleResolveOptions {
pub bundle_root: PathBuf,
pub auto_download: bool,
pub download_progress: bool,
pub hf_token: Option<String>,
pub cache_dir: Option<PathBuf>,
pub max_retries: usize,
pub overwrite: bool,
}Expand description
Options for resolving a local bundle, downloading it when allowed.
Fields§
§bundle_root: PathBufRoot directory containing model bundles.
auto_download: boolWhether missing bundles may be downloaded.
download_progress: boolWhether downloads should report progress.
hf_token: Option<String>Optional Hugging Face token.
cache_dir: Option<PathBuf>Optional Hugging Face cache directory.
max_retries: usizeMaximum download retries.
overwrite: boolWhether materialization should overwrite existing files.
Implementations§
Source§impl ModelBundleResolveOptions
impl ModelBundleResolveOptions
Sourcepub fn downloader(&self) -> HuggingFaceDownloader
pub fn downloader(&self) -> HuggingFaceDownloader
Builds the configured Hugging Face downloader.
Trait Implementations§
Source§impl Clone for ModelBundleResolveOptions
impl Clone for ModelBundleResolveOptions
Source§fn clone(&self) -> ModelBundleResolveOptions
fn clone(&self) -> ModelBundleResolveOptions
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 Debug for ModelBundleResolveOptions
impl Debug for ModelBundleResolveOptions
Source§impl Default for ModelBundleResolveOptions
impl Default for ModelBundleResolveOptions
impl Eq for ModelBundleResolveOptions
Source§impl PartialEq for ModelBundleResolveOptions
impl PartialEq for ModelBundleResolveOptions
Source§fn eq(&self, other: &ModelBundleResolveOptions) -> bool
fn eq(&self, other: &ModelBundleResolveOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelBundleResolveOptions
Auto Trait Implementations§
impl Freeze for ModelBundleResolveOptions
impl RefUnwindSafe for ModelBundleResolveOptions
impl Send for ModelBundleResolveOptions
impl Sync for ModelBundleResolveOptions
impl Unpin for ModelBundleResolveOptions
impl UnsafeUnpin for ModelBundleResolveOptions
impl UnwindSafe for ModelBundleResolveOptions
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