pub struct GetArgs {Show 17 fields
pub urls: Vec<String>,
pub output: Option<String>,
pub dir: Option<String>,
pub connections: Option<usize>,
pub sha256: Option<String>,
pub sha512: Option<String>,
pub blake3: Option<String>,
pub limit: Option<String>,
pub timeout: String,
pub retries: u32,
pub headers: Vec<String>,
pub user_agent: Option<String>,
pub proxy: Option<String>,
pub user: Option<String>,
pub overwrite: bool,
pub restart: bool,
pub no_preallocate: bool,
}Fields§
§urls: Vec<String>URL to download. Pass several for mirrors of the same file
output: Option<String>Write to this filename instead of the one the server suggests
dir: Option<String>Directory to download into
connections: Option<usize>Parallel connections to use when the server supports ranges
sha256: Option<String>Verify the finished file against this SHA-256 digest
sha512: Option<String>Verify the finished file against this SHA-512 digest
blake3: Option<String>Verify the finished file against this BLAKE3 digest
limit: Option<String>Cap total download speed, e.g. 20MiB/s
timeout: StringGive up on a stalled connection after this long, e.g. 30s
retries: u32Attempts per range before giving up
headers: Vec<String>Extra request header, repeatable: –header ‘Key: value’
user_agent: Option<String>User-Agent to send
proxy: Option<String>Proxy URL, e.g. http://localhost:8080 or socks5://localhost:1080
user: Option<String>HTTP basic auth, as user:password
overwrite: boolReplace an existing file at the destination
restart: boolThrow away existing progress and download again from the start
no_preallocate: boolDo not reserve the file’s full size up front
Trait Implementations§
Source§impl Args for GetArgs
impl Args for GetArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for GetArgs
impl FromArgMatches for GetArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.