pub struct Finding {Show 13 fields
pub id: String,
pub rule_id: String,
pub severity: Severity,
pub confidence: Confidence,
pub language: LanguageId,
pub location: SourceLocation,
pub explanation: String,
pub failure_scenario: String,
pub remediation: String,
pub evidence: Vec<DetectionEvidence>,
pub definite_bug: bool,
pub context: Option<CodeContext>,
pub fix_hint: Option<String>,
}Expand description
One analysis finding.
Fields§
§id: String§rule_id: String§severity: Severity§confidence: Confidence§language: LanguageId§location: SourceLocation§explanation: String§failure_scenario: String§remediation: String§evidence: Vec<DetectionEvidence>§definite_bug: boolTrue when the tool treats this as a definite bug; false = review-required practice.
context: Option<CodeContext>§fix_hint: Option<String>Implementations§
Source§impl Finding
impl Finding
pub fn builder( rule_id: impl Into<String>, language: LanguageId, ) -> FindingBuilder
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
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 Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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§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.