pub enum FilterOperator {
Show 15 variants
Eq,
Ne,
Gt,
Lt,
Gte,
Lte,
Like,
ILike,
UnsafeLike,
In,
NotIn,
IsNull,
IsNotNull,
Between,
Contains,
}Variants§
Eq
Ne
Gt
Lt
Gte
Lte
Like
Safe LIKE operator - automatically escapes special characters (% and _) to treat them as literals. Use this for user input to prevent wildcard injection. Example: searching “test_file%” will match exactly “test_file%”, not use % and _ as wildcards.
ILike
Case-insensitive LIKE operator - automatically escapes special characters. Similar to Like but case-insensitive. Safe for user input.
UnsafeLike
Unsafe LIKE operator - allows intentional wildcards (% and ) in patterns. Use only with controlled input where you intentionally want wildcard behavior. Example: “user%” will match “user_123”, “user_abc”, etc. WARNING: Never use with direct user input due to wildcard injection risk.
In
NotIn
IsNull
IsNotNull
Between
Contains
Safe contains operator - wraps value in % wildcards and escapes special characters. Ideal for substring searches. Always safe for user input.
Trait Implementations§
Source§impl Clone for FilterOperator
impl Clone for FilterOperator
Source§fn clone(&self) -> FilterOperator
fn clone(&self) -> FilterOperator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more