pub struct ReportFinding {
pub identity: Vec<String>,
pub rule: String,
pub severity: Severity,
pub title: String,
pub message: String,
pub path: Option<String>,
pub span: Option<Span>,
pub meta: Value,
}Expand description
One finding as it appears in a normalized report.
identity is the analyzer’s own ordered identity recipe, not a fixed set
of fields, which is what lets a new analyzer slot in without a schema change:
semgrep: ["<rule>", "<path>", "<start-byte>", "<snippet-hash>"]
cargo-audit: ["<advisory>", "<pkg>", "<version>", "<lockfile-blob>"]Fields§
§identity: Vec<String>The analyzer’s ordered identity components for this finding.
rule: StringThe rule, advisory or check id that fired.
severity: SeverityThe severity the analyzer assigned.
title: StringOne-line summary.
message: StringThe analyzer’s full message.
path: Option<String>Repository-relative path the finding is about.
span: Option<Span>Byte span within that path.
meta: ValueAnything else the analyzer reported, kept verbatim.
Trait Implementations§
Source§impl Clone for ReportFinding
impl Clone for ReportFinding
Source§fn clone(&self) -> ReportFinding
fn clone(&self) -> ReportFinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReportFinding
impl Debug for ReportFinding
Source§impl<'de> Deserialize<'de> for ReportFinding
impl<'de> Deserialize<'de> for ReportFinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReportFinding
Source§impl PartialEq for ReportFinding
impl PartialEq for ReportFinding
Source§impl Serialize for ReportFinding
impl Serialize for ReportFinding
impl StructuralPartialEq for ReportFinding
Auto Trait Implementations§
impl Freeze for ReportFinding
impl RefUnwindSafe for ReportFinding
impl Send for ReportFinding
impl Sync for ReportFinding
impl Unpin for ReportFinding
impl UnsafeUnpin for ReportFinding
impl UnwindSafe for ReportFinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.