pub struct Violation {
pub rule: Rule,
pub line: usize,
pub message: String,
}Expand description
One accessibility rule violation discovered during linting.
Contains the rule that was violated, the 0-based line number in the scanned input where the violation occurred, and a short human-readable explanation of what was wrong.
Fields§
§rule: RuleWhich rule was violated.
line: usize0-based line number within the scanned input.
message: StringHuman-readable explanation of the 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