pub struct DownloadPrebuiltOutput {
pub archive_prefix: Option<String>,
pub checksum: Option<Checksum>,
pub checksum_name: Option<String>,
pub checksum_public_key: Option<String>,
pub checksum_url: Option<String>,
pub download_name: Option<String>,
pub download_url: String,
pub http_headers: HashMap<String, String, FxBuildHasher>,
pub post_script: Option<PathBuf>,
pub post_script_args: Vec<String>,
}Expand description
Output returned by the download_prebuilt function.
Fields§
§archive_prefix: Option<String>Name of the direct folder within the archive that contains the tool, and will be removed when unpacking the archive.
checksum: Option<Checksum>The checksum hash itself.
checksum_name: Option<String>File name of the checksum to download. If not provided, will attempt to extract it from the URL.
checksum_public_key: Option<String>Public key to use for checksum verification.
checksum_url: Option<String>A secure URL to download the checksum file for verification. If the tool does not support checksum verification, this setting can be omitted.
download_name: Option<String>File name of the archive to download. If not provided, will attempt to extract it from the URL.
download_url: StringA secure URL to download the tool/archive.
http_headers: HashMap<String, String, FxBuildHasher>A map of HTTP headers to include in all requests during the download phase.
post_script: Option<PathBuf>A script file, relative from the install directory, to execute after the prebuilt has been installed.
post_script_args: Vec<String>A list of arguments to pass to the script file when executing it.
Trait Implementations§
Source§impl Clone for DownloadPrebuiltOutput
impl Clone for DownloadPrebuiltOutput
Source§fn clone(&self) -> DownloadPrebuiltOutput
fn clone(&self) -> DownloadPrebuiltOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DownloadPrebuiltOutput
impl Debug for DownloadPrebuiltOutput
Source§impl Default for DownloadPrebuiltOutput
impl Default for DownloadPrebuiltOutput
Source§fn default() -> DownloadPrebuiltOutput
fn default() -> DownloadPrebuiltOutput
Source§impl<'de> Deserialize<'de> for DownloadPrebuiltOutput
impl<'de> Deserialize<'de> for DownloadPrebuiltOutput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DownloadPrebuiltOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DownloadPrebuiltOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DownloadPrebuiltOutput
impl PartialEq for DownloadPrebuiltOutput
Source§fn eq(&self, other: &DownloadPrebuiltOutput) -> bool
fn eq(&self, other: &DownloadPrebuiltOutput) -> bool
self and other values to be equal, and is used by ==.