pub struct Finding {
pub category: RiskCategory,
pub severity: Severity,
pub file: String,
pub line: Option<u32>,
pub message: String,
}Expand description
A single detector hit against a specific file/line region.
Fields§
§category: RiskCategoryCategory this finding belongs to.
severity: SeveritySeverity assigned by the detector.
file: StringFile path, as reported in the diff header.
line: Option<u32>1-based line number in the new file, or None for whole-file findings.
message: StringShort human-readable explanation.
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 StructuralPartialEq for Finding
Auto Trait Implementations§
impl Forget for Finding
impl Freeze for Finding
impl Move 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