pub struct TextFormatter { /* private fields */ }Expand description
Text formatter for analysis results
Implementations§
Source§impl TextFormatter
impl TextFormatter
Sourcepub fn with_color(self, enable: bool) -> Self
pub fn with_color(self, enable: bool) -> Self
Enable or disable ANSI color output
Sourcepub fn is_color_enabled(&self) -> bool
pub fn is_color_enabled(&self) -> bool
Get whether color output is enabled
Sourcepub fn format_query_analysis(&self, analysis: &AnalysisResult) -> Result<String>
pub fn format_query_analysis(&self, analysis: &AnalysisResult) -> Result<String>
Format query analysis results as text
Sourcepub fn format_timing_analysis(
&self,
analysis: &TimingAnalysis,
) -> Result<String>
pub fn format_timing_analysis( &self, analysis: &TimingAnalysis, ) -> Result<String>
Format timing analysis results as text
Sourcepub fn format_findings(&self, findings: &FindingSet) -> Result<String>
pub fn format_findings(&self, findings: &FindingSet) -> Result<String>
Format structured findings as a compact human-readable view.
Sourcepub fn format_log_entries(&self, entries: &[LogEntry]) -> Result<String>
pub fn format_log_entries(&self, entries: &[LogEntry]) -> Result<String>
Format log entries as text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextFormatter
impl RefUnwindSafe for TextFormatter
impl Send for TextFormatter
impl Sync for TextFormatter
impl Unpin for TextFormatter
impl UnsafeUnpin for TextFormatter
impl UnwindSafe for TextFormatter
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