pub struct FormatterConfig {
pub include_metrics: bool,
pub include_issues: bool,
pub include_custom_metrics: bool,
pub max_issues: i32,
pub use_colors: bool,
pub include_timestamps: bool,
}Expand description
Configuration options for formatting validation results.
Fields§
§include_metrics: boolInclude detailed metrics in output
include_issues: boolInclude individual issue details
include_custom_metrics: boolInclude custom metrics from constraints
max_issues: i32Maximum number of issues to display (-1 for all)
use_colors: boolWhether to use colorized output (for human formatter)
include_timestamps: boolWhether to include timestamps in output
Implementations§
Source§impl FormatterConfig
impl FormatterConfig
Sourcepub fn with_metrics(self, include: bool) -> Self
pub fn with_metrics(self, include: bool) -> Self
Sets whether to include detailed metrics.
Sourcepub fn with_issues(self, include: bool) -> Self
pub fn with_issues(self, include: bool) -> Self
Sets whether to include individual issues.
Sourcepub fn with_max_issues(self, max: i32) -> Self
pub fn with_max_issues(self, max: i32) -> Self
Sets the maximum number of issues to display.
Sourcepub fn with_colors(self, use_colors: bool) -> Self
pub fn with_colors(self, use_colors: bool) -> Self
Sets whether to use colorized output.
Trait Implementations§
Source§impl Clone for FormatterConfig
impl Clone for FormatterConfig
Source§fn clone(&self) -> FormatterConfig
fn clone(&self) -> FormatterConfig
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 FormatterConfig
impl Debug for FormatterConfig
Auto Trait Implementations§
impl Freeze for FormatterConfig
impl RefUnwindSafe for FormatterConfig
impl Send for FormatterConfig
impl Sync for FormatterConfig
impl Unpin for FormatterConfig
impl UnwindSafe for FormatterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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