pub struct CompletedDownload {
pub primary_path: PathBuf,
pub all_paths: Vec<PathBuf>,
pub quantization: Quantization,
pub repo_id: String,
pub commit_sha: String,
pub is_sharded: bool,
pub total_bytes: u64,
pub file_paths: Option<Vec<PathBuf>>,
}Expand description
Information about a completed download for model registration.
This is a pure data transfer object containing all information needed to register a model after download completes.
Fields§
§primary_path: PathBufPath to the primary downloaded file (first shard for sharded models).
all_paths: Vec<PathBuf>All downloaded file paths (multiple for sharded models).
quantization: QuantizationThe resolved quantization.
repo_id: StringRepository ID (e.g., “unsloth/Llama-3-GGUF”).
commit_sha: StringCommit SHA at time of download.
is_sharded: boolWhether this was a sharded download.
total_bytes: u64Total bytes downloaded.
file_paths: Option<Vec<PathBuf>>Ordered list of all file paths for sharded models (None for single-file models).
Implementations§
Trait Implementations§
Source§impl Clone for CompletedDownload
impl Clone for CompletedDownload
Source§fn clone(&self) -> CompletedDownload
fn clone(&self) -> CompletedDownload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompletedDownload
impl RefUnwindSafe for CompletedDownload
impl Send for CompletedDownload
impl Sync for CompletedDownload
impl Unpin for CompletedDownload
impl UnwindSafe for CompletedDownload
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