pub struct Options {
pub overwrite: OverwriteMode,
pub backup: BackupMode,
pub suffix: String,
pub update: UpdateMode,
pub target_dir: Option<OsString>,
pub no_target_dir: bool,
pub verbose: bool,
pub strip_slashes: bool,
pub progress_bar: bool,
}
Expand description
Options contains all the possible behaviors and flags for mv.
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§
§overwrite: OverwriteMode
specifies overwrite behavior ‘-n’ ‘–no-clobber’ ‘-i’ ‘–interactive’ ‘-f’ ‘–force’
backup: BackupMode
--backup[=CONTROL]
, -b
suffix: String
‘-S’ –suffix’ backup suffix
update: UpdateMode
Available update mode “–update-mode=all|none|older”
target_dir: Option<OsString>
Specifies target directory ‘-t, –target-directory=DIRECTORY’
no_target_dir: bool
Treat destination as a normal file ’-T, –no-target-directory
verbose: bool
‘-v, –verbose’
strip_slashes: bool
‘–strip-trailing-slashes’
progress_bar: bool
‘-g, –progress’
Trait Implementations§
source§impl PartialEq for Options
impl PartialEq for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
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