pub struct FilterArgs {
pub pattern: Option<String>,
pub file: Option<PathBuf>,
pub invert: bool,
pub count: bool,
pub line_number: bool,
pub case_insensitive: bool,
pub max_lines: usize,
pub json: Option<String>,
}Fields§
§pattern: Option<String>Regex pattern to filter with. If omitted, the TUI starts with an empty pattern.
file: Option<PathBuf>Read input from a file instead of stdin.
invert: boolInvert the match — emit lines that do NOT match (like grep -v).
count: boolEmit only the count of matching lines (non-interactive).
line_number: boolPrefix each emitted line with its line number (non-interactive).
case_insensitive: boolCase-insensitive matching (equivalent to Alt+i inside the TUI).
max_lines: usizeCap input at N lines to prevent OOM on multi-GB piped streams. Defaults to 100000. Pass a larger value (or 0 for no cap — see below) if you know your input fits in memory.
json: Option<String>Extract a field from JSON lines using a dotted path before matching.
Example: –json ‘.msg’ filters the msg field of each JSONL record.
Non-string values and parse failures skip that line silently. The raw
JSON line is still what gets emitted when matched.
Trait Implementations§
Source§impl Args for FilterArgs
impl Args for FilterArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for FilterArgs
impl Clone for FilterArgs
Source§fn clone(&self) -> FilterArgs
fn clone(&self) -> FilterArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilterArgs
impl Debug for FilterArgs
Source§impl FromArgMatches for FilterArgs
impl FromArgMatches for FilterArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for FilterArgs
impl RefUnwindSafe for FilterArgs
impl Send for FilterArgs
impl Sync for FilterArgs
impl Unpin for FilterArgs
impl UnsafeUnpin for FilterArgs
impl UnwindSafe for FilterArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more