pub struct Issue {
pub severity: Severity,
pub code: &'static str,
pub file: PathBuf,
pub line: Option<u32>,
pub key: Option<String>,
pub message: String,
pub suggestion: Option<String>,
pub related: Vec<PathBuf>,
}Expand description
A single structured validation finding. Agent-primary and machine-parseable
via --json; suggestion is a deterministic remediation hint the agent
applies without guessing.
Fields§
§severity: SeverityThe severity; only Severity::Error fails validation.
code: &'static strThe structured code, e.g. "WIKI_LINK_SHORT_FORM" — one of codes.
file: PathBufThe file the issue is about.
line: Option<u32>The 1-based line, when applicable.
key: Option<String>The frontmatter key, when the issue is about a specific field.
message: StringA human-readable message.
suggestion: Option<String>A deterministic remediation hint, when one exists.
Other files involved (e.g. the duplicate partner in a collision).
Implementations§
Trait Implementations§
impl Eq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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.