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
👎Deprecated since 0.2.0: use magi_core::validate::clean_title (applies full cleanup pipeline, not just zero-width strip)
pub fn stripped_title(&self) -> String
use magi_core::validate::clean_title (applies full cleanup pipeline, not just zero-width strip)
Returns the title after applying the full crate::validate::clean_title pipeline.
Replaces control whitespace with spaces, removes invisible characters and Unicode separators, and trims leading/trailing whitespace.
§Deprecation
Prefer calling crate::validate::clean_title directly, which applies the same
pipeline and is the authoritative implementation.
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