pub struct PluginReport { /* private fields */ }Expand description
Collects analysis findings across plugins.
Implementations§
Source§impl PluginReport
impl PluginReport
pub fn new() -> Self
pub fn add(&mut self, plugin_id: &str, severity: &str, message: &str)
pub fn warn(&mut self, plugin_id: &str, message: &str)
pub fn error(&mut self, plugin_id: &str, message: &str)
pub fn warn_at( &mut self, plugin_id: &str, message: &str, location: FindingLocation, )
pub fn error_at( &mut self, plugin_id: &str, message: &str, location: FindingLocation, )
pub fn findings(&self) -> &[Finding]
pub fn as_text(&self) -> String
Trait Implementations§
Source§impl Debug for PluginReport
impl Debug for PluginReport
Source§impl Default for PluginReport
impl Default for PluginReport
Source§fn default() -> PluginReport
fn default() -> PluginReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginReport
impl RefUnwindSafe for PluginReport
impl Send for PluginReport
impl Sync for PluginReport
impl Unpin for PluginReport
impl UnsafeUnpin for PluginReport
impl UnwindSafe for PluginReport
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