pub struct BuildOutputFilter {
pub suppress: Vec<String>,
pub highlight: Vec<String>,
pub min_level: BuildLogLevel,
}Expand description
Filters build output to suppress or highlight certain messages.
Fields§
§suppress: Vec<String>Suppress lines matching these substrings.
highlight: Vec<String>Highlight lines matching these substrings.
min_level: BuildLogLevelMinimum log level to show.
Implementations§
Source§impl BuildOutputFilter
impl BuildOutputFilter
Sourcepub fn min_level(self, level: BuildLogLevel) -> Self
pub fn min_level(self, level: BuildLogLevel) -> Self
Set minimum level.
Sourcepub fn should_show(&self, level: BuildLogLevel, text: &str) -> bool
pub fn should_show(&self, level: BuildLogLevel, text: &str) -> bool
Whether a message at level with text should be shown.
Sourcepub fn should_highlight(&self, text: &str) -> bool
pub fn should_highlight(&self, text: &str) -> bool
Whether a message should be highlighted.
Trait Implementations§
Source§impl Clone for BuildOutputFilter
impl Clone for BuildOutputFilter
Source§fn clone(&self) -> BuildOutputFilter
fn clone(&self) -> BuildOutputFilter
Returns a duplicate of the value. Read more
1.0.0 · 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 BuildOutputFilter
impl Debug for BuildOutputFilter
Auto Trait Implementations§
impl Freeze for BuildOutputFilter
impl RefUnwindSafe for BuildOutputFilter
impl Send for BuildOutputFilter
impl Sync for BuildOutputFilter
impl Unpin for BuildOutputFilter
impl UnsafeUnpin for BuildOutputFilter
impl UnwindSafe for BuildOutputFilter
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