pub struct Options {
pub force: bool,
pub interactive: InteractiveMode,
pub one_fs: bool,
pub preserve_root: bool,
pub recursive: bool,
pub dir: bool,
pub verbose: bool,
}
Expand description
Options for the rm
command
All options are public so that the options can be programmatically constructed by other crates, such as Nushell. That means that this struct is part of our public API. It should therefore not be changed without good reason.
The fields are documented with the arguments that determine their value.
Fields§
§force: bool
-f
, --force
interactive: InteractiveMode
Iterative mode, determines when the command will prompt.
Set by the following arguments:
-i
:InteractiveMode::Always
-I
:InteractiveMode::Once
--interactive
: sets one of the above orInteractiveMode::Never
-f
: implicitly setsInteractiveMode::Never
If no other option sets this mode, InteractiveMode::PromptProtected
is used
one_fs: bool
--one-file-system
preserve_root: bool
--preserve-root
/--no-preserve-root
recursive: bool
-r
, --recursive
dir: bool
-d
, --dir
verbose: bool
-v
, --verbose
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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