pub struct Rule {
pub kind: RuleKind,
pub severity: Severity,
pub location: String,
pub identifier: String,
pub message: String,
}Expand description
A single detected code rule.
Fields§
§kind: RuleKindKind of rule
severity: SeveritySeverity level
location: StringLocation in the project (e.g., “Program:Main”)
identifier: StringThe identifier involved (tag name, routine name, etc.)
message: StringHuman-readable message
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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