pub struct Finding {
pub kind: String,
pub severity: Severity,
pub file_path: String,
pub line: u32,
pub column: Option<u32>,
pub message: String,
pub suggestion: Option<String>,
pub asserts_compile_failure: bool,
pub fingerprint: Option<String>,
}Expand description
One finding produced by an analyzer.
Fields§
§kind: StringRule code (e.g. "F401") for a structured finding, or the tool name
("ruff", "gofmt") when the tool emits no per-rule identifier.
severity: Severity§file_path: String§line: u32§column: Option<u32>§message: String§suggestion: Option<String>Optional one-line suggested fix from the tool. None when the tool does not emit one (e.g. eslint messages carry only a rule id).
asserts_compile_failure: boolWhether the LLM explicitly claims the code cannot compile. Tool findings and older cached responses leave this false.
fingerprint: Option<String>Stable acknowledgement key for an LLM finding, when source context was available. Deterministic findings do not use acknowledgements.
Implementations§
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.