pub struct OutputConfig {
pub format: OutputFormat,
pub min_severity: Severity,
}Expand description
Configuration for output formatting
Fields§
§format: OutputFormatOutput format
min_severity: SeverityMinimum severity to display
Implementations§
Source§impl OutputConfig
impl OutputConfig
Sourcepub fn new(format: OutputFormat, min_severity: Severity) -> Self
pub fn new(format: OutputFormat, min_severity: Severity) -> Self
Create a new output config
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
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 OutputConfig
impl Debug for OutputConfig
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnwindSafe for OutputConfig
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