pub enum ConditionExpression {
    Condition(Condition),
    SimpleExpr(SimpleExpr),
}Expand description
Represents anything that can be passed to an Condition::any or Condition::all’s Condition::add method.
The arguments are automatically converted to the right enum.
Variants§
Condition(Condition)
SimpleExpr(SimpleExpr)
Trait Implementations§
Source§impl Clone for ConditionExpression
 
impl Clone for ConditionExpression
Source§fn clone(&self) -> ConditionExpression
 
fn clone(&self) -> ConditionExpression
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 ConditionExpression
 
impl Debug for ConditionExpression
Source§impl From<Condition> for ConditionExpression
 
impl From<Condition> for ConditionExpression
Source§fn from(condition: Condition) -> ConditionExpression
 
fn from(condition: Condition) -> ConditionExpression
Converts to this type from the input type.
Source§impl From<ConditionExpression> for SimpleExpr
 
impl From<ConditionExpression> for SimpleExpr
Source§fn from(ce: ConditionExpression) -> SimpleExpr
 
fn from(ce: ConditionExpression) -> SimpleExpr
Converts to this type from the input type.
Source§impl From<SimpleExpr> for ConditionExpression
 
impl From<SimpleExpr> for ConditionExpression
Source§fn from(condition: SimpleExpr) -> ConditionExpression
 
fn from(condition: SimpleExpr) -> ConditionExpression
Converts to this type from the input type.
Source§impl PartialEq for ConditionExpression
 
impl PartialEq for ConditionExpression
impl StructuralPartialEq for ConditionExpression
Auto Trait Implementations§
impl Freeze for ConditionExpression
impl !RefUnwindSafe for ConditionExpression
impl Send for ConditionExpression
impl Sync for ConditionExpression
impl Unpin for ConditionExpression
impl !UnwindSafe for ConditionExpression
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> ExprTrait for Twhere
    T: Into<SimpleExpr>,
 
impl<T> ExprTrait for Twhere
    T: Into<SimpleExpr>,
Source§fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
 
fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
Express a 
AS enum expression. Read moreSource§fn binary<O, R>(self, op: O, right: R) -> SimpleExpr
 
fn binary<O, R>(self, op: O, right: R) -> SimpleExpr
Create any binary operation Read more
Source§fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
 
fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
    N: IntoIden,
Express a 
CAST AS expression. Read moreSource§fn unary(self, op: UnOper) -> SimpleExpr
 
fn unary(self, op: UnOper) -> SimpleExpr
Apply any unary operator to the expression. Read more
Source§fn add<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn add<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an arithmetic addition operation. Read more
fn and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Source§fn between<A, B>(self, a: A, b: B) -> SimpleExpr
 
fn between<A, B>(self, a: A, b: B) -> SimpleExpr
Express a 
BETWEEN expression. Read moreSource§fn div<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn div<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an arithmetic division operation. Read more
Source§fn eq<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn eq<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an equal (
=) expression. Read moreSource§fn equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
 
fn equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
Express a equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
Source§fn gt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn gt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a greater than (
>) expression. Read moreSource§fn gte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn gte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a greater than or equal (
>=) expression. Read moreSource§fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
 
fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
Express a 
IN sub-query expression. Read moreSource§fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
    V: IntoValueTuple,
    I: IntoIterator<Item = V>,
 
fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
    V: IntoValueTuple,
    I: IntoIterator<Item = V>,
Express a 
IN sub expression. Read moreSource§fn is<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn is<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a 
IS expression. Read moreSource§fn is_in<V, I>(self, v: I) -> SimpleExpr
 
fn is_in<V, I>(self, v: I) -> SimpleExpr
Express a 
IN expression. Read moreSource§fn is_not<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn is_not<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a 
IS NOT expression. Read moreSource§fn is_not_in<V, I>(self, v: I) -> SimpleExpr
 
fn is_not_in<V, I>(self, v: I) -> SimpleExpr
Express a 
NOT IN expression. Read moreSource§fn is_not_null(self) -> SimpleExpr
 
fn is_not_null(self) -> SimpleExpr
Express a 
IS NOT NULL expression. Read moreSource§fn is_null(self) -> SimpleExpr
 
fn is_null(self) -> SimpleExpr
Express a 
IS NULL expression. Read moreSource§fn left_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn left_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a bitwise left shift. Read more
Source§fn like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
 
fn like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
Express a 
LIKE expression. Read moreSource§fn lt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn lt<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a less than (
<) expression. Read moreSource§fn lte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn lte<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a less than or equal (
<=) expression. Read moreSource§fn modulo<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn modulo<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an arithmetic modulo operation. Read more
Source§fn mul<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn mul<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an arithmetic multiplication operation. Read more
Source§fn ne<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn ne<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a not equal (
<>) expression. Read moreSource§fn not(self) -> SimpleExpr
 
fn not(self) -> SimpleExpr
Negates an expression with 
NOT. Read moreSource§fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
 
fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
Express a 
NOT BETWEEN expression. Read moreSource§fn not_equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
 
fn not_equals<C>(self, col: C) -> SimpleExprwhere
    C: IntoColumnRef,
Express a not equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
Source§fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
 
fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
Express a 
NOT IN sub-query expression. Read moreSource§fn not_like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
 
fn not_like<L>(self, like: L) -> SimpleExprwhere
    L: IntoLikeExpr,
Express a 
NOT LIKE expression. Read moreSource§fn or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a logical 
OR operation. Read moreSource§fn right_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn right_shift<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a bitwise right shift. Read more
Source§fn sub<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn sub<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express an arithmetic subtraction operation. Read more
Source§fn bit_and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn bit_and<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a bitwise AND operation. Read more
Source§fn bit_or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
 
fn bit_or<R>(self, right: R) -> SimpleExprwhere
    R: Into<SimpleExpr>,
Express a bitwise OR operation. 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