Struct fs_extra::dir::DirOptions
source · [−]pub struct DirOptions {
pub depth: u64,
}
Expand description
Options and flags which can be used to configure how read a directory.
Fields
depth: u64
Sets levels reading. Set value 0 for read all directory folder. By default 0.
Implementations
sourceimpl DirOptions
impl DirOptions
sourcepub fn new() -> DirOptions
pub fn new() -> DirOptions
Initialize struct DirOptions with default value.
Trait Implementations
sourceimpl Clone for DirOptions
impl Clone for DirOptions
sourcefn clone(&self) -> DirOptions
fn clone(&self) -> DirOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for DirOptions
impl Default for DirOptions
sourcefn default() -> DirOptions
fn default() -> DirOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DirOptions
impl Send for DirOptions
impl Sync for DirOptions
impl Unpin for DirOptions
impl UnwindSafe for DirOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more