pub struct DirectoryCopyOptions {
pub destination_directory_rule: DestinationDirectoryRule,
pub copy_depth_limit: DirectoryCopyDepthLimit,
pub symlink_behaviour: SymlinkBehaviour,
pub broken_symlink_behaviour: BrokenSymlinkBehaviour,
}Expand description
Options that influence the copy_directory function.
Fields§
§destination_directory_rule: DestinationDirectoryRuleSpecifies whether you allow the destination directory to exist before copying and whether it must be empty or not. If you allow a non-empty destination directory, you may also specify how to behave for existing destination files and sub-directories.
See DestinationDirectoryRule for more details and examples.
copy_depth_limit: DirectoryCopyDepthLimitMaximum depth of the source directory to copy over to the destination.
symlink_behaviour: SymlinkBehaviourSets the behaviour for symbolic links when copying a directory.
broken_symlink_behaviour: BrokenSymlinkBehaviourSets the behaviour for broken symbolic links when copying a directory.
Trait Implementations§
Source§impl Clone for DirectoryCopyOptions
impl Clone for DirectoryCopyOptions
Source§fn clone(&self) -> DirectoryCopyOptions
fn clone(&self) -> DirectoryCopyOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirectoryCopyOptions
impl Debug for DirectoryCopyOptions
Source§impl Default for DirectoryCopyOptions
impl Default for DirectoryCopyOptions
Source§fn default() -> Self
fn default() -> Self
Constructs defaults for copying a directory, which are:
DestinationDirectoryRule::AllowEmpty: if the destination directory already exists, it must be empty,DirectoryCopyDepthLimit::Unlimited: there is no copy depth limit,SymlinkBehaviour::Keep: symbolic links are not followed, andBrokenSymlinkBehaviour::Keep: broken symbolic links are kept as-is, i.e. broken.
Source§impl PartialEq for DirectoryCopyOptions
impl PartialEq for DirectoryCopyOptions
impl Copy for DirectoryCopyOptions
impl Eq for DirectoryCopyOptions
impl StructuralPartialEq for DirectoryCopyOptions
Auto Trait Implementations§
impl Freeze for DirectoryCopyOptions
impl RefUnwindSafe for DirectoryCopyOptions
impl Send for DirectoryCopyOptions
impl Sync for DirectoryCopyOptions
impl Unpin for DirectoryCopyOptions
impl UnwindSafe for DirectoryCopyOptions
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