pub struct RegexRule {
pub rule_name: String,
pub pattern: Regex,
pub severity: RuleSeverity,
pub message: String,
}Expand description
正则匹配规则
使用正则表达式检测 SQL 文本,匹配则视为违规。 适用于自定义模式检测,如敏感表访问、特定函数调用等。
Fields§
§rule_name: String规则名称
pattern: Regex编译后的正则表达式
severity: RuleSeverity违规严重级别
message: String违规说明模板
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegexRule
impl RefUnwindSafe for RegexRule
impl Send for RegexRule
impl Sync for RegexRule
impl Unpin for RegexRule
impl UnsafeUnpin for RegexRule
impl UnwindSafe for RegexRule
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