Crate renamer_rs

Source
Expand description

§Rename-rs

A library to process and rename files or text

§Example


let processor = renamer_rs::ProcessorBuilder::new(format)
        .delimiter(delimiter)
        .selector(selector)
        .input(input);
    processor.process()
}
     

Structs§

Delimiter
Represents a delimiter that will be used to process the input value into segments
Extractor
A struct to be used with the ProcessorBuilder to select values from the original string value before segmentation
FileInput
Represents file path input in InputType
Format
Represents the provided format string and all the detected format patterns
ProcessorBuilder
A ProcessorBuilder is used to configure the renaming process and produces Renamed when processing is activated
Replacer
Represents a Regex that is used to replace matches with a provided substitution
Selector
Represents a Regex that is used to find a single matching segment
TextInput
Represents plain text input in InputType
Trim
Represents a String to be trimmed from a value based on the provided configuration

Enums§

DelimiterType
USed with Delimiter to indicate what type of processing should be used
Error
Errors returned by pass-it-on-command-line-client
InputType
Enum used to pass inputs to the ProcessorBuilder

Traits§

Renamed
This trait represents that has had the renaming process completed