Finding

Trait Finding 

Source
pub trait Finding: Serialize {
    // Required methods
    fn kind(&self) -> String;
    fn name(&self) -> String;
    fn file(&self) -> String;
    fn line(&self) -> usize;
    fn column(&self) -> usize;
    fn reason(&self) -> String;
    fn confidence(&self) -> String;
}
Expand description

Trait for analysis findings that can be reported

Required Methods§

Source

fn kind(&self) -> String

Get the kind/type of the finding (e.g., “Function”, “Class”)

Source

fn name(&self) -> String

Get the name of the symbol

Source

fn file(&self) -> String

Get the file path

Source

fn line(&self) -> usize

Get the line number

Source

fn column(&self) -> usize

Get the column number

Source

fn reason(&self) -> String

Get the reason/description

Source

fn confidence(&self) -> String

Get the confidence level

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§