pub struct SearchFilter {
    pub command_line: Option<CommandLineSearch>,
    pub hostname: Option<String>,
    pub cwd_exact: Option<String>,
    pub cwd_prefix: Option<String>,
    pub exit_successful: Option<bool>,
    /* private fields */
}
Expand description

Defines additional filters for querying the History

Fields

command_line: Option<CommandLineSearch>

Query for the command line content

hostname: Option<String>

Filter based on the executing systems hostname

cwd_exact: Option<String>

Exact filter for the working directory

cwd_prefix: Option<String>

Prefix filter for the working directory

exit_successful: Option<bool>

Filter whether the command completed

Implementations

Create a search filter with a CommandLineSearch

No filter constraint

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.