pub struct Finding {
pub id: String,
pub severity: Severity,
pub category: String,
pub message: String,
pub location: Option<CodeLocation>,
pub suggestion: Option<String>,
}Expand description
A finding from an agent
This struct represents a single finding or issue discovered by an agent. Findings can include code quality issues, security vulnerabilities, or other observations.
Fields§
§id: StringUnique finding identifier
severity: SeveritySeverity level
category: StringCategory of the finding
message: StringMessage describing the finding
location: Option<CodeLocation>Location in code (optional)
suggestion: Option<String>Suggested fix (optional)
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 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