pub struct Filter {
pub field: String,
pub operator: FilterOperator,
pub value: FilterValue,
pub not: bool,
}Fields§
§field: String§operator: FilterOperator§value: FilterValue§not: boolNegates the filter operation. Always operates on the last applied filter. Applies to: Like, UnsafeLike, ILike, In, Between. Examples:
- Like with not=true becomes NOT LIKE
- In with not=true becomes NOT IN
- Between with not=true becomes NOT BETWEEN
Usage: .like(“name”, “pattern”).not() // Creates NOT LIKE Note: IsNull/IsNotNull don’t use this field as they are already explicit.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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