pub struct LintIssue {
pub lint_rule: String,
pub level: Level,
pub help_text: String,
pub scope: LintScope,
pub issue_type: LintIssueType,
pub links: BTreeMap<String, String>,
}Expand description
An issue a LintRule may encounter.
Fields§
§lint_rule: StringThe name of the lint rule that triggers this error.
level: LevelThe severity level of this issue.
help_text: StringThe help text that is displayed when the issue is encountered.
scope: LintScopeThe scope in which the lint is discovered.
issue_type: LintIssueTypeThe type of issue that is encountered.
links: BTreeMap<String, String>Links that can be appended to an issue.
Stored as a map of name -> URL.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LintIssue
impl<'de> Deserialize<'de> for LintIssue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LintIssue> for LintIssueDisplay
impl From<LintIssue> for LintIssueDisplay
Source§fn from(other: LintIssue) -> LintIssueDisplay
fn from(other: LintIssue) -> LintIssueDisplay
Convert this LintIssue into a LintIssueDisplay for formatted output.
Auto Trait Implementations§
impl Freeze for LintIssue
impl RefUnwindSafe for LintIssue
impl Send for LintIssue
impl Sync for LintIssue
impl Unpin for LintIssue
impl UnwindSafe for LintIssue
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