pub enum FilterOp {
Eq,
EqOrMissing,
Ne,
Lt,
Lte,
Gt,
Gte,
JsonTypeEq,
JsonTypeNeMissing,
}Expand description
Comparison operator for a PropertyFilter on a JSON path.
Variants§
Eq
EqOrMissing
Matches rows where the JSON field equals the value OR the field is absent/NULL.
Used for properties that may be missing in legacy rows (e.g. $.read).
Ne
Lt
Lte
Gt
Gte
JsonTypeEq
Matches rows where json_type(properties, path) = value.
Value must be a SQLite json_type string literal: ‘true’, ‘false’, ‘integer’,
‘real’, ‘text’, ‘array’, ‘object’, or ‘null’.
JsonTypeNeMissing
Matches rows where the json_type is absent (NULL) OR differs from value.
Equivalent to json_type IS NULL OR json_type != value.
Used for unread filter: matches any $.read that is NOT the JSON boolean true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FilterOp
impl<'de> Deserialize<'de> for FilterOp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FilterOp
impl RefUnwindSafe for FilterOp
impl Send for FilterOp
impl Sync for FilterOp
impl Unpin for FilterOp
impl UnsafeUnpin for FilterOp
impl UnwindSafe for FilterOp
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