pub struct CacheKey {
pub root: PathBuf,
pub patterns: Vec<String>,
pub exclude_patterns: Vec<String>,
pub recursive: bool,
pub follow_symlinks: bool,
pub include_hidden: bool,
pub include_files: bool,
pub include_directories: bool,
pub include_symlinks: bool,
pub max_depth: Option<usize>,
pub sort: SortMode,
}Expand description
Cache key capturing all inputs that affect discovery results.
Fields§
§root: PathBufSearch / list root.
patterns: Vec<String>Glob patterns (empty for pure listing cache use).
exclude_patterns: Vec<String>Exclude patterns.
recursive: boolRecursive walk.
follow_symlinks: boolFollow symlinks.
Include hidden.
include_files: boolInclude files.
include_directories: boolInclude directories.
include_symlinks: boolInclude symlinks.
max_depth: Option<usize>Max depth.
sort: SortModeSort mode used for the discovery result.
Implementations§
Source§impl CacheKey
impl CacheKey
Sourcepub fn from_search(request: &SearchRequest) -> Self
Available on crate feature search only.
pub fn from_search(request: &SearchRequest) -> Self
search only.Build a key from a search request.
Trait Implementations§
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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