Struct DateTimeLikeColumn
pub struct DateTimeLikeColumn<E: EntityTrait>(pub E::Column);Expand description
Supports both chrono and time DateTime
Tuple Fields§
§0: E::ColumnImplementations§
§impl<E: EntityTrait> DateTimeLikeColumn<E>
impl<E: EntityTrait> DateTimeLikeColumn<E>
pub fn enum_type_name(&self) -> Option<&'static str>
pub fn enum_type_name(&self) -> Option<&'static str>
Get the enum type name if this is a enum column
pub fn entity_name(&self) -> DynIden
pub fn entity_name(&self) -> DynIden
Get the name of the entity the column belongs to
pub fn as_column_ref(&self) -> (DynIden, DynIden)
pub fn as_column_ref(&self) -> (DynIden, DynIden)
Get the table.column reference
pub fn eq<V>(&self, v: V) -> Expr
pub fn ne<V>(&self, v: V) -> Expr
pub fn gt<V>(&self, v: V) -> Expr
pub fn gte<V>(&self, v: V) -> Expr
pub fn lt<V>(&self, v: V) -> Expr
pub fn lte<V>(&self, v: V) -> Expr
pub fn between<V>(&self, v1: V, v2: V) -> Expr
pub fn not_between<V>(&self, v1: V, v2: V) -> Expr
pub fn max(&self) -> Expr
pub fn min(&self) -> Expr
pub fn sum(&self) -> Expr
pub fn count(&self) -> Expr
pub fn is_null(&self) -> Expr
pub fn is_not_null(&self) -> Expr
pub fn if_null<V>(&self, v: V) -> Expr
pub fn is_in<V, I>(&self, v: I) -> Expr
pub fn is_not_in<V, I>(&self, v: I) -> Expr
pub fn in_subquery(&self, s: SelectStatement) -> Expr
pub fn not_in_subquery(&self, s: SelectStatement) -> Expr
Trait Implementations§
§impl<E: Clone + EntityTrait> Clone for DateTimeLikeColumn<E>
impl<E: Clone + EntityTrait> Clone for DateTimeLikeColumn<E>
§fn clone(&self) -> DateTimeLikeColumn<E>
fn clone(&self) -> DateTimeLikeColumn<E>
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 more§impl<E: Debug + EntityTrait> Debug for DateTimeLikeColumn<E>
impl<E: Debug + EntityTrait> Debug for DateTimeLikeColumn<E>
§impl<E: Hash + EntityTrait> Hash for DateTimeLikeColumn<E>
impl<E: Hash + EntityTrait> Hash for DateTimeLikeColumn<E>
§impl<E: EntityTrait> Iden for DateTimeLikeColumn<E>
impl<E: EntityTrait> Iden for DateTimeLikeColumn<E>
§impl<E: EntityTrait> IntoSimpleExpr for DateTimeLikeColumn<E>
impl<E: EntityTrait> IntoSimpleExpr for DateTimeLikeColumn<E>
§fn into_simple_expr(self) -> Expr
fn into_simple_expr(self) -> Expr
Method to perform the conversion
§impl<E: PartialEq + EntityTrait> PartialEq for DateTimeLikeColumn<E>
impl<E: PartialEq + EntityTrait> PartialEq for DateTimeLikeColumn<E>
impl<E: Copy + EntityTrait> Copy for DateTimeLikeColumn<E>
impl<E: Eq + EntityTrait> Eq for DateTimeLikeColumn<E>
impl<E: EntityTrait> StructuralPartialEq for DateTimeLikeColumn<E>
Auto Trait Implementations§
impl<E> Freeze for DateTimeLikeColumn<E>
impl<E> RefUnwindSafe for DateTimeLikeColumn<E>
impl<E> Send for DateTimeLikeColumn<E>
impl<E> Sync for DateTimeLikeColumn<E>
impl<E> Unpin for DateTimeLikeColumn<E>
impl<E> UnwindSafe for DateTimeLikeColumn<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoColumnRef for T
impl<T> IntoColumnRef for T
fn into_column_ref(self) -> ColumnRef
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