pub struct RuleViolation {
pub rule_name: String,
pub rule_type: RuleType,
pub description: String,
pub affected_projects: Vec<String>,
pub severity: ViolationSeverity,
}Expand description
A rule violation
Fields§
§rule_name: StringName of the violated rule
rule_type: RuleTypeType of rule
description: StringDescription of the violation
affected_projects: Vec<String>Projects involved in the violation
severity: ViolationSeveritySeverity level
Trait Implementations§
Source§impl Clone for RuleViolation
impl Clone for RuleViolation
Source§fn clone(&self) -> RuleViolation
fn clone(&self) -> RuleViolation
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 moreAuto Trait Implementations§
impl Freeze for RuleViolation
impl RefUnwindSafe for RuleViolation
impl Send for RuleViolation
impl Sync for RuleViolation
impl Unpin for RuleViolation
impl UnwindSafe for RuleViolation
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