pub struct PatternRule {
pub id: String,
pub rule_type: RuleType,
pub pattern: String,
pub message: String,
pub severity: Option<Severity>,
pub enabled: bool,
pub case_sensitive: bool,
pub exclude_if: Option<ExcludeConditions>,
}Expand description
Individual pattern rule configuration
Fields§
§id: StringUnique identifier for this rule
rule_type: RuleTypeType of pattern (regex, ast, semantic)
pattern: StringThe pattern to match
message: StringHuman-readable message for violations
severity: Option<Severity>Severity override (uses category default if not specified)
enabled: boolWhether this rule is enabled
case_sensitive: boolCase sensitivity for regex patterns
exclude_if: Option<ExcludeConditions>Conditions that exclude matches from being violations
Trait Implementations§
Source§impl Clone for PatternRule
impl Clone for PatternRule
Source§fn clone(&self) -> PatternRule
fn clone(&self) -> PatternRule
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 PatternRule
impl Debug for PatternRule
Source§impl<'de> Deserialize<'de> for PatternRule
impl<'de> Deserialize<'de> for PatternRule
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 Hash for PatternRule
impl Hash for PatternRule
Auto Trait Implementations§
impl Freeze for PatternRule
impl RefUnwindSafe for PatternRule
impl Send for PatternRule
impl Sync for PatternRule
impl Unpin for PatternRule
impl UnwindSafe for PatternRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more