pub struct DownloadCommand {
pub rom_id: Option<u64>,
pub action: Option<DownloadAction>,
pub output: Option<PathBuf>,
pub platform: Option<String>,
pub search_term: Option<String>,
pub jobs: usize,
pub extract: bool,
pub extract_layout: ExtractLayout,
pub delete_zip_after_extract: bool,
pub with_extras: bool,
pub no_extras: bool,
pub yes: bool,
}Expand description
Download a ROM to the local filesystem with a progress bar.
Fields§
§rom_id: Option<u64>ID of the ROM to download in single-ROM mode
action: Option<DownloadAction>§output: Option<PathBuf>Directory to save the ROM zip(s) to
platform: Option<String>Filter by platform slug or title (e.g. “3ds”)
search_term: Option<String>Filter by search term
jobs: usizeMaximum concurrent downloads (default: 4)
extract: boolExtract each downloaded ZIP after download completes (batch mode only)
extract_layout: ExtractLayoutLayout for extracted files when –extract is set (default: platform)
delete_zip_after_extract: boolDelete ZIP files after successful extraction (batch mode only)
with_extras: boolInclude updates and DLC after downloading the base game (single-ROM mode)
no_extras: boolSkip updates and DLC (single-ROM mode)
yes: boolAssume yes for extras prompt (single-ROM mode)
Trait Implementations§
Source§impl Args for DownloadCommand
impl Args for DownloadCommand
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for DownloadCommand
impl Debug for DownloadCommand
Source§impl FromArgMatches for DownloadCommand
impl FromArgMatches for DownloadCommand
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for DownloadCommand
impl RefUnwindSafe for DownloadCommand
impl Send for DownloadCommand
impl Sync for DownloadCommand
impl Unpin for DownloadCommand
impl UnsafeUnpin for DownloadCommand
impl UnwindSafe for DownloadCommand
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more