pub struct Violation {
pub rule_id: String,
pub rule_name: String,
pub message: String,
pub line: usize,
pub column: usize,
pub severity: Severity,
pub fix: Option<Fix>,
}Expand description
A violation found during linting
Fields§
§rule_id: StringRule identifier (e.g., “MD001”)
rule_name: StringHuman-readable rule name (e.g., “heading-increment”)
message: StringDescription of the violation
line: usizeLine number (1-based)
column: usizeColumn number (1-based)
severity: SeveritySeverity level
fix: Option<Fix>Optional fix for this violation
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnwindSafe for Violation
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.