pub struct Config {Show 30 fields
pub default_depth: u32,
pub default_method: u8,
pub case_insensitive: bool,
pub include_dirs: bool,
pub binary_check_bytes: usize,
pub max_line_length: usize,
pub threads: usize,
pub hash_algorithm: String,
pub hash_buffer_size: usize,
pub dup_min_size: u64,
pub dup_max_size: u64,
pub verbose: bool,
pub show_size: bool,
pub show_modified: bool,
pub max_results: usize,
pub color_index: String,
pub color_path: String,
pub color_line_num: String,
pub color_line_text: String,
pub color_header: String,
pub color_count: String,
pub color_error: String,
pub color_warn: String,
pub color_info: String,
pub color_pattern: String,
pub color_dup_group: String,
pub color_dup_path: String,
pub color_dup_size: String,
pub exclude_dirs: String,
pub default_include: String,
}Expand description
Complete fsearch configuration.
All fields are optional at the TOML level — missing keys fall back to
the values in Config::default.
Fields§
§default_depth: u32Default max depth for -d flag.
default_method: u81 = walkdir+rayon, 2 = recursive.
case_insensitive: boolMatch case-insensitively by default.
include_dirs: boolInclude directory entries in filename-search results.
binary_check_bytes: usizeBytes to probe when checking for binary content.
max_line_length: usizeLines longer than this are skipped in content search.
threads: usizeRayon thread count (0 = all logical CPUs).
hash_algorithm: StringHashing algorithm: "md5" or "sha256".
hash_buffer_size: usizeBuffer size (bytes) used when streaming files for hashing.
dup_min_size: u64Minimum file size (bytes) to consider for duplicate detection (0 = all).
dup_max_size: u64Maximum file size (bytes) to consider (0 = unlimited).
verbose: boolPrint verbose status to stderr.
show_size: boolShow file sizes next to results.
show_modified: boolShow last-modified timestamps next to results.
max_results: usizeMaximum results to return (0 = unlimited).
color_index: String§color_path: String§color_line_num: String§color_line_text: String§color_header: String§color_count: String§color_error: String§color_warn: String§color_info: String§color_pattern: String§color_dup_group: String§color_dup_path: String§color_dup_size: String§exclude_dirs: StringComma-separated directory names always skipped during traversal.
default_include: StringComma-separated glob patterns included by default (empty = all).
Implementations§
Source§impl Config
impl Config
Sourcepub fn load_from_path(path: PathBuf) -> FsearchResult<Self>
pub fn load_from_path(path: PathBuf) -> FsearchResult<Self>
Load from an explicit path — useful for testing and library consumers.
Sourcepub fn write_default() -> FsearchResult<PathBuf>
pub fn write_default() -> FsearchResult<PathBuf>
Write an annotated default config file and return its path.
Sourcepub fn excluded_dirs(&self) -> Vec<String>
pub fn excluded_dirs(&self) -> Vec<String>
Parsed list of directory-name globs to skip.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more