pub struct Config {
pub query: String,
pub filename: String,
pub case_sensitive: bool,
}Expand description
Holds the command-line arguments given.
§Examples
extern crate zcking_minigrep;
let config = zcking_minigrep::Config {
query: String::from("Ishmael"),
filename: String::from("moby_dick.txt"),
case_sensitive: true,
};Fields§
§query: StringThe term to search for
filename: StringPath to the file to search in
case_sensitive: boolWhether case should be ignored or not when searching
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