pub struct JsonPrinter { /* private fields */ }Implementations§
Source§impl JsonPrinter
impl JsonPrinter
pub fn new(files_scanned: usize) -> Self
pub fn with_fixed(self, fixed: usize) -> Self
pub fn with_baseline( self, baseline: Option<String>, suppressed: usize, stale: usize, ) -> Self
pub fn with_config_file(self, config_file: Option<String>) -> Self
pub fn with_exclusions(self, exclusions: Vec<(String, usize)>) -> Self
pub fn with_rules( self, applied: Vec<String>, skipped: Vec<String>, unconfigured: Vec<String>, ) -> Self
pub fn with_threshold(self, threshold: OffenceThreshold) -> Self
pub fn render(&self, offences: &[Offence]) -> String
pub fn print(&self, offences: &[Offence])
Auto Trait Implementations§
impl Freeze for JsonPrinter
impl RefUnwindSafe for JsonPrinter
impl Send for JsonPrinter
impl Sync for JsonPrinter
impl Unpin for JsonPrinter
impl UnsafeUnpin for JsonPrinter
impl UnwindSafe for JsonPrinter
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