pub struct RowExpression<'a, 'q, R> { /* private fields */ }Expand description
The row a where_expr condition is about: JSON paths into its columns,
exists over its relationships, and the connectives. Compare columns
with their constants’ methods, such as Issue::TITLE.like("%bug%").
Implementations§
Source§impl<R> RowExpression<'_, '_, R>
impl<R> RowExpression<'_, '_, R>
Sourcepub fn json<V>(
&self,
column: Column<R, V>,
path: Vec<JsonPathSegment>,
) -> JsonPath<'_, '_>
pub fn json<V>( &self, column: Column<R, V>, path: Vec<JsonPathSegment>, ) -> JsonPath<'_, '_>
A value inside a json column: e.json(Issue::METADATA, vec!["tags".into(), 0.into()]).eq("bug".into()).
Sourcepub fn exists<D: ZeroRow>(
&self,
relationship: Relationship<R, D>,
options: ExistsOptions,
sub: impl FnOnce(Query<D>) -> Query<D>,
) -> Condition
pub fn exists<D: ZeroRow>( &self, relationship: Relationship<R, D>, options: ExistsOptions, sub: impl FnOnce(Query<D>) -> Query<D>, ) -> Condition
Whether a related row in relationship matches sub.
Sourcepub fn and(&self, conditions: Vec<Condition>) -> Condition
pub fn and(&self, conditions: Vec<Condition>) -> Condition
All of conditions; true when there are none.
Auto Trait Implementations§
impl<'a, 'q, R> !RefUnwindSafe for RowExpression<'a, 'q, R>
impl<'a, 'q, R> !Send for RowExpression<'a, 'q, R>
impl<'a, 'q, R> !Sync for RowExpression<'a, 'q, R>
impl<'a, 'q, R> !UnwindSafe for RowExpression<'a, 'q, R>
impl<'a, 'q, R> Forget for RowExpression<'a, 'q, R>
impl<'a, 'q, R> Freeze for RowExpression<'a, 'q, R>
impl<'a, 'q, R> Move for RowExpression<'a, 'q, R>
impl<'a, 'q, R> Unpin for RowExpression<'a, 'q, R>
impl<'a, 'q, R> UnsafeUnpin for RowExpression<'a, 'q, R>
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