pub struct WalkerConfig {
pub rules: Vec<WalkerRule>,
pub follow_symlinks: bool,
pub drop_empty_dirs: bool,
}
Expand description
Configuration for ReBackup’s walker
Fields§
§rules: Vec<WalkerRule>
List of rules to apply on items
follow_symlinks: bool
Should the walker follow symbolic links?
drop_empty_dirs: bool
Drop empty directoryes
Implementations§
Source§impl WalkerConfig
Create a default configuration from rules
impl WalkerConfig
Create a default configuration from rules
pub fn new(rules: Vec<WalkerRule>) -> Self
Auto Trait Implementations§
impl Freeze for WalkerConfig
impl !RefUnwindSafe for WalkerConfig
impl !Send for WalkerConfig
impl !Sync for WalkerConfig
impl Unpin for WalkerConfig
impl !UnwindSafe for WalkerConfig
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