pub struct Config {Show 17 fields
pub files: Vec<PathBuf>,
pub patterns: Vec<String>,
pub regex_patterns: Vec<Regex>,
pub exclude_patterns: Vec<String>,
pub exclude_patterns_lowercase: Vec<String>,
pub exclude_regex_patterns: Vec<Regex>,
pub case_insensitive: bool,
pub color_mappings: HashMap<String, Color>,
pub notify_enabled: bool,
pub notify_patterns: Vec<String>,
pub notify_throttle: u32,
pub dry_run: bool,
pub quiet: bool,
pub no_color: bool,
pub prefix_files: bool,
pub poll_interval: u64,
pub buffer_size: usize,
}Fields§
§files: Vec<PathBuf>§patterns: Vec<String>§regex_patterns: Vec<Regex>§exclude_patterns: Vec<String>§exclude_patterns_lowercase: Vec<String>§exclude_regex_patterns: Vec<Regex>§case_insensitive: bool§color_mappings: HashMap<String, Color>§notify_enabled: bool§notify_patterns: Vec<String>§notify_throttle: u32§dry_run: bool§quiet: bool§no_color: bool§prefix_files: bool§poll_interval: u64§buffer_size: usizeImplementations§
Source§impl Config
impl Config
pub fn from_args(args: &Args) -> Result<Self>
Sourcepub fn should_notify_for_pattern(&self, pattern: &str) -> bool
pub fn should_notify_for_pattern(&self, pattern: &str) -> bool
Check if a pattern should trigger notifications
Sourcepub fn get_color_for_pattern(&self, pattern: &str) -> Option<Color>
pub fn get_color_for_pattern(&self, pattern: &str) -> Option<Color>
Get color for a pattern
Sourcepub fn should_exclude(&self, line: &str) -> bool
pub fn should_exclude(&self, line: &str) -> bool
Check if a line should be excluded based on exclude patterns
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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