pub struct DownloadRequest {
pub url: String,
pub path: String,
pub extract: bool,
pub strip_components: u32,
}Fields§
§url: String§path: String§extract: boolIf true, decompress .tar.gz and extract to path as a directory.
strip_components: u32When extracting, strip N leading path components from each entry,
mirroring tar --strip-components=N. Defaults to 0 (keep paths as-is).
Use 1 for releases wrapped in a single top-level directory
(Node.js, Pi, etc.) so node-v22/bin/node becomes bin/node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DownloadRequest
impl<'de> Deserialize<'de> for DownloadRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DownloadRequest
impl RefUnwindSafe for DownloadRequest
impl Send for DownloadRequest
impl Sync for DownloadRequest
impl Unpin for DownloadRequest
impl UnsafeUnpin for DownloadRequest
impl UnwindSafe for DownloadRequest
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