pub struct DirectoryMoveWithProgressOptions {
pub destination_directory_rule: DestinationDirectoryRule,
pub allowed_strategies: DirectoryMoveWithProgressAllowedStrategies,
}Expand description
Options that influence the move_directory_with_progress function.
§destination_directory_rule considerations
If you allow the destination directory to exist and be non-empty, source directory contents will be merged (!) into the destination directory. This is not the default, and you should probably consider the consequences very carefully before using that option.
Fields§
§destination_directory_rule: DestinationDirectoryRuleSpecifies whether you allow the destination directory to exist before moving and whether it must be empty or not.
If you allow a non-empty destination directory, you may also specify whether you allow destination files or subdirectories to already exist (and be overwritten).
See DestinationDirectoryRule for more details and examples.
allowed_strategies: DirectoryMoveWithProgressAllowedStrategiesSets the allowed directory move strategies. Per-strategy options are also configured here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirectoryMoveWithProgressOptions
impl RefUnwindSafe for DirectoryMoveWithProgressOptions
impl Send for DirectoryMoveWithProgressOptions
impl Sync for DirectoryMoveWithProgressOptions
impl Unpin for DirectoryMoveWithProgressOptions
impl UnwindSafe for DirectoryMoveWithProgressOptions
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