pub struct Report {
pub node: Option<Handle>,
pub line: u32,
pub column: u32,
pub message: Option<String>,
pub fix: Option<Fix>,
}Expand description
A violation a rule asked for.
Deliberately not a lanekeep_core::Violation. A rule supplies a position and optionally
a message; the rule’s identity, severity and card come from the engine, which is what
stops a rule from reporting under someone else’s name.
Fields§
§node: Option<Handle>The node reported at, when the rule passed one.
line: u32One-based line.
column: u32One-based column.
message: Option<String>A message overriding the rule card’s, when the rule supplied one.
fix: Option<Fix>A replacement the rule offered.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.