pub struct RenameOptions {
pub case_transform: CaseTransform,
pub space_replace: SpaceReplace,
pub add_prefix: Option<String>,
pub remove_prefix: Option<String>,
pub add_suffix: Option<String>,
pub remove_suffix: Option<String>,
pub replace_prefix: Option<(String, String)>,
pub replace_suffix: Option<(String, String)>,
pub timestamp_format: TimestampFormat,
pub recursive: bool,
pub dry_run: bool,
pub include_symlinks: bool,
}Expand description
Options for file renaming
Fields§
§case_transform: CaseTransformCase transformation to apply
space_replace: SpaceReplaceSpace replacement to apply
add_prefix: Option<String>Prefix to add
remove_prefix: Option<String>Prefix to remove
add_suffix: Option<String>Suffix to add (before extension)
remove_suffix: Option<String>Suffix to remove (before extension)
replace_prefix: Option<(String, String)>Replace prefix (old, new)
replace_suffix: Option<(String, String)>Replace suffix (old, new)
timestamp_format: TimestampFormatTimestamp format for prefix (based on file creation time)
recursive: boolProcess directories recursively
dry_run: boolDry run mode (don’t rename files)
include_symlinks: boolInclude symbolic links in processing
Trait Implementations§
Source§impl Clone for RenameOptions
impl Clone for RenameOptions
Source§fn clone(&self) -> RenameOptions
fn clone(&self) -> RenameOptions
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 RenameOptions
impl Debug for RenameOptions
Auto Trait Implementations§
impl Freeze for RenameOptions
impl RefUnwindSafe for RenameOptions
impl Send for RenameOptions
impl Sync for RenameOptions
impl Unpin for RenameOptions
impl UnsafeUnpin for RenameOptions
impl UnwindSafe for RenameOptions
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