pub struct CopyOptions {
pub overwrite: bool,
pub restrict_symlinks: bool,
pub follow_symlinks: bool,
pub content_only: bool,
pub buffer_size: usize,
pub depth: usize,
}Expand description
Configuration settings for the recursive copy operation.
Fields§
§overwrite: boolIf true, existing files at the destination will be replaced.
restrict_symlinks: boolIf true, prevents symlinks from pointing to locations outside the source tree.
follow_symlinks: boolIf true, copies the actual content of the symlink target instead of the link itself.
content_only: boolIf true, copies only the contents of the source directory, not the directory itself.
buffer_size: usizeThe size of the buffer used for file I/O operations (in bytes).
depth: usizeThe maximum recursion depth for directory traversal.
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
Source§fn clone(&self) -> CopyOptions
fn clone(&self) -> CopyOptions
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 CopyOptions
impl Debug for CopyOptions
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnsafeUnpin for CopyOptions
impl UnwindSafe for CopyOptions
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