pub enum BinaryCondition<'a> {
    Equals(Box<[Condition<'a>; 2]>),
    NotEquals(Box<[Condition<'a>; 2]>),
    Greater(Box<[Condition<'a>; 2]>),
    GreaterOrEquals(Box<[Condition<'a>; 2]>),
    Less(Box<[Condition<'a>; 2]>),
    LessOrEquals(Box<[Condition<'a>; 2]>),
    Like(Box<[Condition<'a>; 2]>),
    NotLike(Box<[Condition<'a>; 2]>),
    Regexp(Box<[Condition<'a>; 2]>),
    NotRegexp(Box<[Condition<'a>; 2]>),
    In(Box<[Condition<'a>; 2]>),
    NotIn(Box<[Condition<'a>; 2]>),
}
Expand description

This enum represents a binary expression.

Variants§

§

Equals(Box<[Condition<'a>; 2]>)

Representation of “{} = {}” in SQL

§

NotEquals(Box<[Condition<'a>; 2]>)

Representation of “{} <> {}” in SQL

§

Greater(Box<[Condition<'a>; 2]>)

Representation of “{} > {}” in SQL

§

GreaterOrEquals(Box<[Condition<'a>; 2]>)

Representation of “{} >= {}” in SQL

§

Less(Box<[Condition<'a>; 2]>)

Representation of “{} < {}” in SQL

§

LessOrEquals(Box<[Condition<'a>; 2]>)

Representation of “{} <= {}” in SQL

§

Like(Box<[Condition<'a>; 2]>)

Representation of “{} LIKE {}” in SQL

§

NotLike(Box<[Condition<'a>; 2]>)

Representation of “{} NOT LIKE {}” in SQL

§

Regexp(Box<[Condition<'a>; 2]>)

Representation of “{} REGEXP {}” in SQL

§

NotRegexp(Box<[Condition<'a>; 2]>)

Representation of “{} NOT REGEXP {}” in SQL

§

In(Box<[Condition<'a>; 2]>)

Representation of “{} IN {}” in SQL

§

NotIn(Box<[Condition<'a>; 2]>)

Representation of “{} NOT IN {}” in SQL

Trait Implementations§

This method is used to convert a condition to SQL without allocating a dedicated string. Read more
This method is used to convert a condition to SQL. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.