pub enum OperatorName {
Show 39 variants
Rx,
Pm,
PmFromFile,
Pmf,
StreQ,
Contains,
ContainsWord,
BeginsWith,
EndsWith,
Within,
StrMatch,
Eq,
Ne,
Gt,
Ge,
Lt,
Le,
DetectSqli,
DetectXss,
ValidateUrlEncoding,
ValidateUtf8Encoding,
ValidateByteRange,
ValidateHash,
ValidateDtd,
ValidateSchema,
VerifyCc,
VerifySsn,
VerifyCpf,
IpMatch,
IpMatchFromFile,
IpMatchF,
Rbl,
GeoLookup,
GsbLookup,
InspectFile,
FuzzyHash,
NoMatch,
UnconditionalMatch,
Rsub,
}Expand description
Operator names supported by ModSecurity.
Variants§
Rx
Regular expression match.
Pm
Phrase match (Aho-Corasick).
PmFromFile
Phrase match from file.
Pmf
Phrase match (alias).
StreQ
String equals.
Contains
Contains substring.
ContainsWord
Contains word.
BeginsWith
Begins with.
EndsWith
Ends with.
Within
Within list.
StrMatch
String match (single pattern, case-insensitive).
Eq
Equal.
Ne
Not equal.
Gt
Greater than.
Ge
Greater than or equal.
Lt
Less than.
Le
Less than or equal.
DetectSqli
Detect SQL injection.
DetectXss
Detect XSS.
ValidateUrlEncoding
Validate URL encoding.
ValidateUtf8Encoding
Validate UTF-8 encoding.
ValidateByteRange
Validate byte range.
ValidateHash
Validate hash.
ValidateDtd
Validate DTD.
ValidateSchema
Validate schema.
VerifyCc
Verify credit card.
VerifySsn
Verify SSN.
VerifyCpf
Verify CPF (Brazilian ID).
IpMatch
IP address match.
IpMatchFromFile
IP address match from file.
IpMatchF
IP address match (alias).
Rbl
RBL lookup.
GeoLookup
Geo lookup.
GsbLookup
GSB lookup.
InspectFile
Inspect file.
FuzzyHash
Fuzzy hash.
NoMatch
No match (always false).
UnconditionalMatch
Unconditional match (always true).
Rsub
Rsub (regex substitution).
Implementations§
Source§impl OperatorName
impl OperatorName
Trait Implementations§
Source§impl Clone for OperatorName
impl Clone for OperatorName
Source§fn clone(&self) -> OperatorName
fn clone(&self) -> OperatorName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more