pub struct Config {
pub query: String,
pub filename: String,
pub case_sensitive: bool,
}
Expand description
The necessary configurations for initializing milligrep.
Fields§
§query: String
The pattern to search for in the contents of the file.
filename: String
The file along with the path in which the pattern search will be conducted.
case_sensitive: bool
CASE_SENSITIVE flag, either true or false
Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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
Mutably borrows from an owned value. Read more