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>,
pub session: Option<HistorySessionId>,
/* 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
session: Option<HistorySessionId>
Filter on the session id
Implementations§
source§impl SearchFilter
impl SearchFilter
sourcepub fn from_text_search(
cmd: CommandLineSearch,
session: Option<HistorySessionId>
) -> SearchFilter
pub fn from_text_search( cmd: CommandLineSearch, session: Option<HistorySessionId> ) -> SearchFilter
Create a search filter with a CommandLineSearch
sourcepub fn from_text_search_cwd(
cwd: String,
cmd: CommandLineSearch,
session: Option<HistorySessionId>
) -> SearchFilter
pub fn from_text_search_cwd( cwd: String, cmd: CommandLineSearch, session: Option<HistorySessionId> ) -> SearchFilter
Create a search filter with a CommandLineSearch
and cwd
sourcepub fn anything(session: Option<HistorySessionId>) -> SearchFilter
pub fn anything(session: Option<HistorySessionId>) -> SearchFilter
anything within this session
Auto Trait Implementations§
impl Freeze for SearchFilter
impl RefUnwindSafe for SearchFilter
impl Send for SearchFilter
impl Sync for SearchFilter
impl Unpin for SearchFilter
impl UnwindSafe for SearchFilter
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