pub struct JsonPath<'a, 'q> { /* private fields */ }Expand description
A value inside a json column in a where_expr. Its JSON type isn’t
known, so it compares with any Value: one of another type never
equals it. Comparing with null uses IS.
Implementations§
Source§impl JsonPath<'_, '_>
impl JsonPath<'_, '_>
Sourcepub fn cmp(&self, op: SimpleOperator, value: Value) -> Condition
pub fn cmp(&self, op: SimpleOperator, value: Value) -> Condition
The value at the path compares to value by op.
Sourcepub fn cmp_param(
&self,
op: SimpleOperator,
param: &StaticParameter,
) -> Condition
pub fn cmp_param( &self, op: SimpleOperator, param: &StaticParameter, ) -> Condition
The value at the path compares to a value of the context by op.
Sourcepub fn ne(&self, value: Value) -> Condition
pub fn ne(&self, value: Value) -> Condition
The value at the path differs from value (IS NOT for null).
Sourcepub fn not_like(&self, pattern: &str) -> Condition
pub fn not_like(&self, pattern: &str) -> Condition
The value at the path doesn’t match the LIKE pattern.
Auto Trait Implementations§
impl<'a, 'q> !RefUnwindSafe for JsonPath<'a, 'q>
impl<'a, 'q> !Send for JsonPath<'a, 'q>
impl<'a, 'q> !Sync for JsonPath<'a, 'q>
impl<'a, 'q> !UnwindSafe for JsonPath<'a, 'q>
impl<'a, 'q> Forget for JsonPath<'a, 'q>
impl<'a, 'q> Freeze for JsonPath<'a, 'q>
impl<'a, 'q> Move for JsonPath<'a, 'q>
impl<'a, 'q> Unpin for JsonPath<'a, 'q>
impl<'a, 'q> UnsafeUnpin for JsonPath<'a, 'q>
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