Struct milligrep::Config[][src]

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

Initializes a new Config.

Returns error if incorrect option is passed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.