pub struct Expr<T, Kind = ScalarExpression> {
pub node: ExprNode,
/* private fields */
}Fields§
§node: ExprNodeImplementations§
Source§impl<T, Kind> Expr<T, Kind>where
T: 'static,
impl<T, Kind> Expr<T, Kind>where
T: 'static,
pub fn eq<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn eq_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn ne<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn ne_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn is_distinct_from_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn is_not_distinct_from_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn lt<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn lt_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn le<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn le_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn gt<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn gt_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn ge<V>(self, value: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn ge_col<M2>(self, other: Column<M2, T>) -> Expr<bool>
pub fn between<L, U>(self, low: L, high: U) -> Expr<bool>where
L: ColumnValue<T>,
U: ColumnValue<T>,
pub fn like<V>(self, pattern: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn ilike<V>(self, pattern: V) -> Expr<bool>where
V: ColumnValue<T>,
pub fn is_null(self) -> Expr<bool>
pub fn is_not_null(self) -> Expr<bool>
pub fn in_<I, V>(self, values: I) -> Expr<bool>where
I: IntoIterator<Item = V>,
V: ColumnValue<T>,
Trait Implementations§
Source§impl<Kind> Add<Expr<PgInterval, Kind>> for NaiveDateTime
impl<Kind> Add<Expr<PgInterval, Kind>> for NaiveDateTime
Source§impl<T, Kind> ExprOperand for Expr<T, Kind>
impl<T, Kind> ExprOperand for Expr<T, Kind>
Source§impl<T, Kind> IntoOrderExpr for Expr<T, Kind>
impl<T, Kind> IntoOrderExpr for Expr<T, Kind>
fn into_order_expr(self) -> OrderExpr
Source§impl<Kind> Sub<Expr<PgInterval, Kind>> for NaiveDateTime
impl<Kind> Sub<Expr<PgInterval, Kind>> for NaiveDateTime
Auto Trait Implementations§
impl<T, Kind> Freeze for Expr<T, Kind>
impl<T, Kind> RefUnwindSafe for Expr<T, Kind>
impl<T, Kind> Send for Expr<T, Kind>
impl<T, Kind> Sync for Expr<T, Kind>
impl<T, Kind> Unpin for Expr<T, Kind>
impl<T, Kind> UnsafeUnpin for Expr<T, Kind>
impl<T, Kind> UnwindSafe for Expr<T, Kind>
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> 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> IntoConcatExpr for T
impl<T> IntoConcatExpr for T
fn into_concat_expr(self) -> ConcatExpr
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