pub enum Expr<'a> {
Paths(Vec<Path<'a>>),
Value(Box<PathValue<'a>>),
BinaryOp {
op: BinaryOperator,
left: Box<Self>,
right: Box<Self>,
},
UnaryOp {
op: UnaryOperator,
operand: Box<Self>,
},
ExistsFunc(Vec<Path<'a>>),
}Expand description
Represents a filter expression used to filter Array or Object.
Variants§
Paths(Vec<Path<'a>>)
JSON Path chains.
Value(Box<PathValue<'a>>)
Literal value.
BinaryOp
Filter expression that performs a binary operation, returns a boolean value, Or arithmetic expression that performs an arithmetic operation, returns a number value.
UnaryOp
Unary expression that performs an arithmetic operation.
ExistsFunc(Vec<Path<'a>>)
Filter function, returns a boolean value.
Trait Implementations§
impl<'a> StructuralPartialEq for Expr<'a>
Auto Trait Implementations§
impl<'a> Freeze for Expr<'a>
impl<'a> RefUnwindSafe for Expr<'a>
impl<'a> Send for Expr<'a>
impl<'a> Sync for Expr<'a>
impl<'a> Unpin for Expr<'a>
impl<'a> UnsafeUnpin for Expr<'a>
impl<'a> UnwindSafe for Expr<'a>
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