pub struct OutputOptions {
pub show_filename: bool,
pub files_with_matches: bool,
pub count_mode: bool,
pub context_lines: Option<usize>,
pub heading_mode: bool,
pub no_line_number: bool,
pub format: OutputFormat,
pub template: Option<String>,
pub color_mode: ColorMode,
}Expand description
Options for output formatting
Fields§
§show_filename: boolShow notebook names in output
files_with_matches: boolShow only notebook names (files-with-matches mode)
count_mode: boolShow match counts instead of matches
context_lines: Option<usize>Number of context lines to show
heading_mode: boolUse heading mode (group by notebook)
no_line_number: boolDon’t show line numbers
format: OutputFormatOutput format preset
template: Option<String>Custom template string
color_mode: ColorModeColor mode
Trait Implementations§
Source§impl Clone for OutputOptions
impl Clone for OutputOptions
Source§fn clone(&self) -> OutputOptions
fn clone(&self) -> OutputOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputOptions
impl Debug for OutputOptions
Source§impl Default for OutputOptions
impl Default for OutputOptions
Source§fn default() -> OutputOptions
fn default() -> OutputOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OutputOptions
impl RefUnwindSafe for OutputOptions
impl Send for OutputOptions
impl Sync for OutputOptions
impl Unpin for OutputOptions
impl UnsafeUnpin for OutputOptions
impl UnwindSafe for OutputOptions
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