pub struct DownloadResult {
pub path: PathBuf,
pub size: u64,
pub checksum: Option<String>,
pub cached: bool,
}Expand description
Result of a model download.
Fields§
§path: PathBufLocal path to the downloaded model.
size: u64Size of the downloaded file in bytes.
checksum: Option<String>SHA256 checksum of the file.
cached: boolWhether the file was already cached.
Trait Implementations§
Source§impl Clone for DownloadResult
impl Clone for DownloadResult
Source§fn clone(&self) -> DownloadResult
fn clone(&self) -> DownloadResult
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 DownloadResult
impl RefUnwindSafe for DownloadResult
impl Send for DownloadResult
impl Sync for DownloadResult
impl Unpin for DownloadResult
impl UnsafeUnpin for DownloadResult
impl UnwindSafe for DownloadResult
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