pub enum JsonPathPredicate {
Compare(String, CompareOp, PredicateValue),
Exists(String),
And(Box<JsonPathPredicate>, Box<JsonPathPredicate>),
Or(Box<JsonPathPredicate>, Box<JsonPathPredicate>),
Not(Box<JsonPathPredicate>),
}Expand description
A predicate for filter expressions.
Variants§
Compare(String, CompareOp, PredicateValue)
Comparison: @.field op value
Exists(String)
Existence check: @.field
And(Box<JsonPathPredicate>, Box<JsonPathPredicate>)
Logical AND
Or(Box<JsonPathPredicate>, Box<JsonPathPredicate>)
Logical OR
Not(Box<JsonPathPredicate>)
Logical NOT
Trait Implementations§
Source§impl Clone for JsonPathPredicate
impl Clone for JsonPathPredicate
Source§fn clone(&self) -> JsonPathPredicate
fn clone(&self) -> JsonPathPredicate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonPathPredicate
impl Debug for JsonPathPredicate
Source§impl PartialEq for JsonPathPredicate
impl PartialEq for JsonPathPredicate
impl StructuralPartialEq for JsonPathPredicate
Auto Trait Implementations§
impl Freeze for JsonPathPredicate
impl RefUnwindSafe for JsonPathPredicate
impl Send for JsonPathPredicate
impl Sync for JsonPathPredicate
impl Unpin for JsonPathPredicate
impl UnwindSafe for JsonPathPredicate
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