pub struct RuleRef {
pub rule: String,
pub span: Option<String>,
pub reason: String,
}Expand description
One analyzer rule as the report carries it.
Fields§
§rule: StringRule ID, e.g. RC001.
span: Option<String>file:line:col of the offending site, when the analyzer gave one.
reason: StringWhy it applies at this configuration — the launch-shape reasoning, not just the analyzer’s generic message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RuleRef
impl<'de> Deserialize<'de> for RuleRef
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
Auto Trait Implementations§
impl Freeze for RuleRef
impl RefUnwindSafe for RuleRef
impl Send for RuleRef
impl Sync for RuleRef
impl Unpin for RuleRef
impl UnsafeUnpin for RuleRef
impl UnwindSafe for RuleRef
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