pub struct Finding {
pub severity: Severity,
pub title: String,
pub detail: String,
}Expand description
A single finding reported by an agent during analysis.
Findings have a severity, title, and detail explanation.
Fields§
§severity: SeveritySeverity level of this finding.
title: StringShort title describing the finding.
detail: StringDetailed explanation of the finding.
Implementations§
Source§impl Finding
impl Finding
Sourcepub fn stripped_title(&self) -> String
pub fn stripped_title(&self) -> String
Returns the title with Unicode format characters (category Cf) removed.
Strips zero-width spaces, byte order marks, and other invisible
formatting characters that could interfere with deduplication.
Uses ZERO_WIDTH_PATTERN, compiled once via LazyLock.
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