pub struct Predicate {
pub field: String,
pub op: FieldOp,
}Expand description
A single field filter: field name + comparison operator.
Fields§
§field: String§op: FieldOpImplementations§
Source§impl Predicate
impl Predicate
pub fn eq(field: impl Into<String>, value: FieldValue) -> Self
pub fn gt(field: impl Into<String>, value: FieldValue) -> Self
pub fn gte(field: impl Into<String>, value: FieldValue) -> Self
pub fn lt(field: impl Into<String>, value: FieldValue) -> Self
pub fn lte(field: impl Into<String>, value: FieldValue) -> Self
pub fn prefix(field: impl Into<String>, prefix: impl Into<Bytes>) -> Self
pub fn in_values(field: impl Into<String>, values: Vec<FieldValue>) -> Self
pub fn is_not_null(field: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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