pub struct Finding {
pub code: String,
pub slug: String,
pub severity: Severity,
pub dimension: Dimension,
pub tool: String,
pub related_tool: Option<String>,
pub json_pointer: String,
pub message: String,
pub evidence: Value,
pub fix_hint: String,
pub source_location: Option<SourceLocation>,
pub source_server: Option<String>,
}Expand description
A single actionable diagnostic finding emitted by crate::Auditor.
Fields§
§code: StringStable rule ID (VOL001–VOL024).
slug: StringKebab-case rule slug.
severity: SeverityDiagnostic severity.
dimension: DimensionAffected quality dimension.
tool: StringName of the primary tool (or "<catalog>" for catalog-wide findings).
Related sibling tool name for pairwise rules (VOL005, VOL014, VOL015).
json_pointer: StringRFC 6901 JSON Pointer locating the offending field within the tool catalog.
message: StringConcise factual description of the defect.
evidence: ValueStructured evidence fields (scores, matched terms, offending parameters).
fix_hint: StringActionable fix instruction designed for AI coding agents and maintainers.
source_location: Option<SourceLocation>Optional static source coordinates propagated from ToolSpec::source_location.
source_server: Option<String>Optional origin MCP server name propagated from ToolSpec::source_server.
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 StructuralPartialEq for Finding
Auto Trait Implementations§
impl Forget for Finding
impl Freeze for Findingwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Findingwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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