pub struct MistakeReport {
pub category: MistakeCategory,
pub description: String,
pub pattern_signature: String,
pub suggestion: String,
pub severity: f32,
}Expand description
A report of a coding mistake or anti-pattern.
Fields§
§category: MistakeCategoryCategory of the mistake.
description: StringShort description of what went wrong.
pattern_signature: StringThe pattern signature that triggered the detection.
suggestion: StringSuggested fix or improvement.
severity: f32Severity (0.0 = informational, 1.0 = critical).
Trait Implementations§
Source§impl Clone for MistakeReport
impl Clone for MistakeReport
Source§fn clone(&self) -> MistakeReport
fn clone(&self) -> MistakeReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MistakeReport
impl Debug for MistakeReport
Source§impl<'de> Deserialize<'de> for MistakeReport
impl<'de> Deserialize<'de> for MistakeReport
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 MistakeReport
impl RefUnwindSafe for MistakeReport
impl Send for MistakeReport
impl Sync for MistakeReport
impl Unpin for MistakeReport
impl UnsafeUnpin for MistakeReport
impl UnwindSafe for MistakeReport
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