pub(crate) struct DownloadTask {
pub(crate) SidecarName: String,
pub(crate) MajorVersion: String,
pub(crate) FullVersion: String,
pub(crate) DownloadURL: String,
pub(crate) TempParentDirectory: PathBuf,
pub(crate) DestinationDirectory: PathBuf,
pub(crate) ArchiveType: ArchiveType,
pub(crate) ExtractedFolderName: String,
pub(crate) TauriTargetTriple: String,
}Expand description
Contains all the necessary information to perform a single download and installation task. An instance of this struct is created for each binary that needs to be downloaded.
Fields§
§SidecarName: StringThe name of the sidecar (e.g., “NODE”).
MajorVersion: StringThe major version string requested (e.g., “24”).
FullVersion: StringThe full, resolved version string (e.g., “v24.0.0”).
DownloadURL: StringThe complete URL to download the archive from.
TempParentDirectory: PathBufThe directory where temporary folders for this task will be created.
DestinationDirectory: PathBufThe final destination directory for the extracted binaries.
ArchiveType: ArchiveTypeThe type of archive to be downloaded.
ExtractedFolderName: StringThe name of the root folder inside the archive once extracted.
TauriTargetTriple: StringThe Tauri target triple for this download task.
Trait Implementations§
Source§impl Clone for DownloadTask
impl Clone for DownloadTask
Source§fn clone(&self) -> DownloadTask
fn clone(&self) -> DownloadTask
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 DownloadTask
impl RefUnwindSafe for DownloadTask
impl Send for DownloadTask
impl Sync for DownloadTask
impl Unpin for DownloadTask
impl UnwindSafe for DownloadTask
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