pub struct Finding {
pub kind: String,
pub severity: Severity,
pub title: String,
pub detail: String,
pub location: Option<Location>,
pub evidence: Vec<String>,
pub data: Value,
}Expand description
A structured finding reported by an agent via MCP report_finding.
The schema is the contract — agents emit these instead of free text.
Fields§
§kind: StringCategory, e.g. “missing_auth” / “source”.
severity: Severity§title: String§detail: String§location: Option<Location>Optional file:line locator.
evidence: Vec<String>Supporting evidence / citations.
data: ValueFree-form structured extension.
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