pub struct Finding {
pub severity: Severity,
pub check_id: String,
pub code: String,
pub message: String,
pub location: Option<Location>,
pub data: Option<Value>,
pub fingerprint: Option<String>,
}Expand description
A single finding from the coverage analysis.
Fields§
§severity: SeveritySeverity of the finding.
check_id: StringCheck identifier (e.g., “diff.uncovered_line”).
code: StringFull error code (e.g., “covguard.diff.uncovered_line”).
message: StringHuman-readable message describing the finding.
location: Option<Location>Location of the finding in source code.
data: Option<Value>Additional structured data about the finding.
fingerprint: Option<String>SHA-256 fingerprint for deduplication (^[a-f0-9]{64}$).
Implementations§
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
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