Struct fs_extra::dir::CopyOptions [−][src]
Options and flags which can be used to configure how a file will be copied or moved.
Fields
overwrite: bool
Sets the option true for overwrite existing files.
skip_exist: bool
Sets the option true for skipe existing files.
buffer_size: usize
Sets buffer size for copy/move work only with receipt information about process work.
copy_inside: bool
Sets the option true for recursively copying a directory with a new name or place it inside the destination.(same behaviors like cp -r in Unix)
content_only: bool
Sets the option true, for copy only content without a created folder in the destination folder
depth: u64
Sets levels reading. Set 0 for read all directory folder. By default 0.
Warrning: Work only for copy operations!
Implementations
impl CopyOptions
[src]
pub fn new() -> CopyOptions
[src]
Initialize struct CopyOptions with default value.
overwrite: false skip_exist: false buffer_size: 64000 //64kb copy_inside: false
Trait Implementations
impl Clone for CopyOptions
[src]
fn clone(&self) -> CopyOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for CopyOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnwindSafe for CopyOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,