pub struct UninstallArgs {
pub mods: Vec<String>,
pub all: bool,
pub yes: bool,
pub force: bool,
}Expand description
Arguments for the uninstall command.
Fields§
§mods: Vec<String>One or more Owner-ModName identifiers.
all: boolUninstall every mod recorded in this target’s mods.yml, including the mod loader, leaving a vanilla install.
yes: boolSkip the confirmation prompt that --all shows.
force: boolUninstall even when mod folders that mods.yml does not record are present under the install routes. Those folders are deleted along with the named mods, since an uninstall reconciles the whole namespaced tree against mods.yml.
Trait Implementations§
Source§impl Args for UninstallArgs
impl Args for UninstallArgs
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 FromArgMatches for UninstallArgs
impl FromArgMatches for UninstallArgs
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 UninstallArgs
impl RefUnwindSafe for UninstallArgs
impl Send for UninstallArgs
impl Sync for UninstallArgs
impl Unpin for UninstallArgs
impl UnsafeUnpin for UninstallArgs
impl UnwindSafe for UninstallArgs
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