pub struct FindConfig<'a> {
pub path: &'a Path,
pub query: String,
pub depth: usize,
}
Expand description
Required configuration for find.
Fields§
§path: &'a Path
Path of the folder to start the search.
query: String
Substring to query for.
depth: usize
Folder depth value for the serach.
Implementations§
Source§impl<'a> FindConfig<'a>
impl<'a> FindConfig<'a>
Sourcepub fn build(args: &[String]) -> Result<FindConfig<'_>, &'static str>
pub fn build(args: &[String]) -> Result<FindConfig<'_>, &'static str>
Builds the FindConfig from command-line arguments
Auto Trait Implementations§
impl<'a> Freeze for FindConfig<'a>
impl<'a> RefUnwindSafe for FindConfig<'a>
impl<'a> Send for FindConfig<'a>
impl<'a> Sync for FindConfig<'a>
impl<'a> Unpin for FindConfig<'a>
impl<'a> UnwindSafe for FindConfig<'a>
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