pub struct Issue {
pub rule_id: String,
pub rule_name: String,
pub severity: IssueSeverity,
pub message: String,
pub path: Option<PathBuf>,
pub line: Option<usize>,
pub column: Option<usize>,
pub adr_number: Option<u32>,
pub related_adrs: Vec<u32>,
}Expand description
A unified issue type for both per-file lint violations and repository-level diagnostics.
Fields§
§rule_id: StringThe rule that produced this issue (e.g., “ADR001”, “adr-title-format”).
rule_name: StringHuman-readable rule name.
severity: IssueSeverityThe severity of this issue.
message: StringA human-readable message describing the issue.
path: Option<PathBuf>The path to the affected file, if applicable.
line: Option<usize>Line number (1-based), if applicable.
column: Option<usize>Column number (1-based), if applicable.
adr_number: Option<u32>The ADR number, if applicable.
Related ADR numbers (for issues involving multiple ADRs).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin 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