pub struct ErrorReportConfig {
pub include_message: bool,
pub include_source_chain: bool,
pub include_backtrace: bool,
pub include_rich_context: bool,
pub include_source_location: bool,
pub include_severity: bool,
pub format: ErrorReportFormat,
pub max_chain_depth: Option<usize>,
pub pretty_print_json: bool,
pub include_diagnostics: bool,
}Expand description
Configuration for the error reporter
Fields§
§include_message: boolWhether to include the main error message in the report
include_source_chain: boolWhether to include the chain of source errors in the report
include_backtrace: boolWhether to include backtrace information in the report
include_rich_context: boolWhether to include rich context information in the report
include_source_location: boolWhether to include source code location information in the report
include_severity: boolWhether to include error severity information in the report
format: ErrorReportFormatThe output format for the error report
max_chain_depth: Option<usize>Maximum depth of the error source chain to include (None for unlimited)
pretty_print_json: boolWhether to format JSON output with indentation and line breaks
include_diagnostics: boolWhether to include diagnostic information in the report
Trait Implementations§
Source§impl Clone for ErrorReportConfig
impl Clone for ErrorReportConfig
Source§fn clone(&self) -> ErrorReportConfig
fn clone(&self) -> ErrorReportConfig
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 ErrorReportConfig
impl Debug for ErrorReportConfig
Auto Trait Implementations§
impl Freeze for ErrorReportConfig
impl RefUnwindSafe for ErrorReportConfig
impl Send for ErrorReportConfig
impl Sync for ErrorReportConfig
impl Unpin for ErrorReportConfig
impl UnwindSafe for ErrorReportConfig
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