Struct reedline::SearchFilter
source · [−]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
sourceimpl SearchFilter
impl SearchFilter
sourcepub fn from_text_search(cmd: CommandLineSearch) -> SearchFilter
pub fn from_text_search(cmd: CommandLineSearch) -> SearchFilter
Create a search filter with a CommandLineSearch
sourcepub fn anything() -> SearchFilter
pub fn anything() -> SearchFilter
No filter constraint
Auto Trait Implementations
impl RefUnwindSafe for SearchFilter
impl Send for SearchFilter
impl Sync for SearchFilter
impl Unpin for SearchFilter
impl UnwindSafe for SearchFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more