pub struct GroupOptions {
pub separator: char,
pub min_count: usize,
pub strip_prefix: bool,
pub from_suffix: bool,
pub recursive: bool,
pub dry_run: bool,
}Expand description
Options for file grouping
Fields§
§separator: charSeparator character that divides prefix from the rest of the filename (default: ‘_’)
min_count: usizeMinimum number of files with same prefix to create a group (default: 2)
strip_prefix: boolRemove the prefix from filenames after moving to subdirectory
from_suffix: boolUse the suffix (part after last separator) as filename, rest as directory When true, splits at the LAST separator instead of the first
recursive: boolProcess directories recursively
dry_run: boolDry run mode (don’t move files or create directories)
Trait Implementations§
Source§impl Clone for GroupOptions
impl Clone for GroupOptions
Source§fn clone(&self) -> GroupOptions
fn clone(&self) -> GroupOptions
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 GroupOptions
impl Debug for GroupOptions
Source§impl Default for GroupOptions
impl Default for GroupOptions
Auto Trait Implementations§
impl Freeze for GroupOptions
impl RefUnwindSafe for GroupOptions
impl Send for GroupOptions
impl Sync for GroupOptions
impl Unpin for GroupOptions
impl UnsafeUnpin for GroupOptions
impl UnwindSafe for GroupOptions
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