pub struct FilterExpr<E>where
E: SearchEntity,{ /* private fields */ }Expand description
Entity-bound predicate expression for programmatic queries.
Implementations§
Source§impl<E> FilterExpr<E>where
E: SearchEntity,
impl<E> FilterExpr<E>where
E: SearchEntity,
pub fn eq<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn ne<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn gt<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn ge<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn lt<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn le<T, K>(
field: FieldRef<E, T, K>,
value: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn between<T, K>(
field: FieldRef<E, T, K>,
lower: T,
upper: T,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
pub fn in_list<T, K, I>(
field: FieldRef<E, T, K>,
values: I,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
I: IntoIterator<Item = T>,
pub fn is_null<T, K>( field: FieldRef<E, T, K>, ) -> Result<FilterExpr<E>, ParamError>
pub fn is_not_null<T, K>( field: FieldRef<E, T, K>, ) -> Result<FilterExpr<E>, ParamError>
pub fn starts_with<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn eq_ignore_case<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn ne_ignore_case<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn starts_with_ignore_case<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn contains<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn contains_ignore_case<K>( field: FieldRef<E, String, K>, value: impl Into<String>, ) -> Result<FilterExpr<E>, ParamError>
pub fn custom<T, K, I>(
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: I,
) -> Result<FilterExpr<E>, ParamError>where
T: IntoScalarValue,
I: IntoIterator<Item = T>,
pub fn custom_values<T, K, V>(
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> Result<FilterExpr<E>, ParamError>where
V: IntoScalarValue,
pub fn all( expressions: impl IntoIterator<Item = FilterExpr<E>>, ) -> Result<FilterExpr<E>, ParamError>
pub fn any( expressions: impl IntoIterator<Item = FilterExpr<E>>, ) -> Result<FilterExpr<E>, ParamError>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for FilterExpr<E>
impl<E> RefUnwindSafe for FilterExpr<E>
impl<E> Send for FilterExpr<E>
impl<E> Sync for FilterExpr<E>
impl<E> Unpin for FilterExpr<E>
impl<E> UnsafeUnpin for FilterExpr<E>
impl<E> UnwindSafe for FilterExpr<E>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more