pub struct Yadf<P: AsRef<Path>> { /* private fields */ }Expand description
Search configuration.
Example
let counter = yadf::Yadf::builder()
.paths(paths) // required
.minimum_file_size(64) // optional
.maximum_file_size(1024 * 8) // optional
.regex(None) // optional
.glob(None) // optional
.build()
.scan::<seahash::SeaHasher>();see the docs for the YadfBuilder
Implementations§
source§impl<P: AsRef<Path>> Yadf<P>
impl<P: AsRef<Path>> Yadf<P>
sourcepub fn builder() -> YadfBuilder<((), (), (), (), (), (), ()), P>
pub fn builder() -> YadfBuilder<((), (), (), (), (), (), ()), P>
Create a builder for building Yadf.
On the builder, call .paths(...), .minimum_file_size(...)(optional), .maximum_file_size(...)(optional), .max_depth(...)(optional), .regex(...)(optional), .glob(...)(optional), .hard_links(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Yadf.