pub struct CliRendererConfig {
pub use_colors: bool,
pub context_lines: usize,
pub show_error_codes: bool,
pub show_suggestions: bool,
pub show_related: bool,
pub terminal_width: usize,
}Expand description
Configuration for CLI error rendering
Fields§
§use_colors: boolUse ANSI colors in output
context_lines: usizeNumber of context lines to show before/after error
show_error_codes: boolShow error codes (e.g., E0001)
show_suggestions: boolShow suggestions
Show related information
terminal_width: usizeTerminal width for wrapping (0 = no wrap)
Implementations§
Trait Implementations§
Source§impl Clone for CliRendererConfig
impl Clone for CliRendererConfig
Source§fn clone(&self) -> CliRendererConfig
fn clone(&self) -> CliRendererConfig
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 CliRendererConfig
impl Debug for CliRendererConfig
Auto Trait Implementations§
impl Freeze for CliRendererConfig
impl RefUnwindSafe for CliRendererConfig
impl Send for CliRendererConfig
impl Sync for CliRendererConfig
impl Unpin for CliRendererConfig
impl UnsafeUnpin for CliRendererConfig
impl UnwindSafe for CliRendererConfig
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