pub struct Settings {
    pub verbosity: Verbosity,
    pub dry_run: bool,
    pub hidden: bool,
    pub ignored: bool,
    pub selected_file_types: Vec<String>,
    pub ignored_file_types: Vec<String>,
}
Expand description

Settings applied for a DirectoryPatcher run

Fields

verbosity: Verbosity

Control verbosity of ruplacer’s console output

dry_run: bool

If true, do not write changes to the file system (default: false)

hidden: bool

If true, also patch hidden files (default: false)

ignored: bool

If true, also patch ignored files (default: false)

selected_file_types: Vec<String>

List of file types to select (default: empty)

ignored_file_types: Vec<String>

List of file types to ignore (default: empty)

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.