pub struct PatternViolation {
pub node_id: u64,
pub name: String,
pub violation: String,
pub suggested_fix: String,
pub severity: ViolationSeverity,
}Expand description
A pattern violation.
Fields§
§node_id: u64Node ID.
name: StringNode name.
violation: StringWhat’s wrong.
suggested_fix: StringHow to fix.
severity: ViolationSeveritySeverity.
Trait Implementations§
Source§impl Clone for PatternViolation
impl Clone for PatternViolation
Source§fn clone(&self) -> PatternViolation
fn clone(&self) -> PatternViolation
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 PatternViolation
impl Debug for PatternViolation
Source§impl<'de> Deserialize<'de> for PatternViolation
impl<'de> Deserialize<'de> for PatternViolation
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 PatternViolation
impl RefUnwindSafe for PatternViolation
impl Send for PatternViolation
impl Sync for PatternViolation
impl Unpin for PatternViolation
impl UnsafeUnpin for PatternViolation
impl UnwindSafe for PatternViolation
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