pub struct TimeLikeColumn<E: EntityTrait>(pub E::Column);Expand description
Supports both chrono and time Time
Tuple Fieldsยง
ยง0: E::ColumnImplementationsยง
Sourceยงimpl<E: EntityTrait> TimeLikeColumn<E>
impl<E: EntityTrait> TimeLikeColumn<E>
Sourcepub fn def(&self) -> ColumnDef
Available on crate features with-chrono or with-time only.
pub fn def(&self) -> ColumnDef
with-chrono or with-time only.Get the column definition with SQL attributes
Sourcepub fn enum_type_name(&self) -> Option<&'static str>
Available on crate features with-chrono or with-time only.
pub fn enum_type_name(&self) -> Option<&'static str>
with-chrono or with-time only.Get the enum type name if this is a enum column
Sourcepub fn entity_name(&self) -> DynIden
Available on crate features with-chrono or with-time only.
pub fn entity_name(&self) -> DynIden
with-chrono or with-time only.Get the name of the entity the column belongs to
Sourcepub fn as_column_ref(&self) -> (DynIden, DynIden)
Available on crate features with-chrono or with-time only.
pub fn as_column_ref(&self) -> (DynIden, DynIden)
with-chrono or with-time only.Get the table.column reference
pub fn eq<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn ne<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn gt<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn gte<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn lt<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn lte<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn between<V>(&self, v1: V, v2: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn not_between<V>(&self, v1: V, v2: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn max(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn min(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn sum(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn count(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn is_null(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn is_not_null(&self) -> Expr
Available on crate features
with-chrono or with-time only.pub fn if_null<V>(&self, v: V) -> Expr
Available on crate features
with-chrono or with-time only.pub fn is_in<V, I>(&self, v: I) -> Expr
Available on crate features
with-chrono or with-time only.pub fn is_not_in<V, I>(&self, v: I) -> Expr
Available on crate features
with-chrono or with-time only.Sourcepub fn eq_any<V, I>(&self, v: I) -> Expr
Available on (crate features with-chrono or with-time) and crate feature postgres-array only.
pub fn eq_any<V, I>(&self, v: I) -> Expr
with-chrono or with-time) and crate feature postgres-array only.= ANY(..) operator. Postgres only.
pub fn in_subquery(&self, s: SelectStatement) -> Expr
Available on crate features
with-chrono or with-time only.pub fn not_in_subquery(&self, s: SelectStatement) -> Expr
Available on crate features
with-chrono or with-time only.Trait Implementationsยง
Sourceยงimpl<E: Clone + EntityTrait> Clone for TimeLikeColumn<E>
impl<E: Clone + EntityTrait> Clone for TimeLikeColumn<E>
Sourceยงfn clone(&self) -> TimeLikeColumn<E>
fn clone(&self) -> TimeLikeColumn<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 moreSourceยงimpl<E: Debug + EntityTrait> Debug for TimeLikeColumn<E>
impl<E: Debug + EntityTrait> Debug for TimeLikeColumn<E>
Sourceยงimpl<E: Hash + EntityTrait> Hash for TimeLikeColumn<E>
impl<E: Hash + EntityTrait> Hash for TimeLikeColumn<E>
Sourceยงimpl<E: EntityTrait> Iden for TimeLikeColumn<E>
impl<E: EntityTrait> Iden for TimeLikeColumn<E>
Sourceยงimpl<E: EntityTrait> IntoSimpleExpr for TimeLikeColumn<E>
impl<E: EntityTrait> IntoSimpleExpr for TimeLikeColumn<E>
Sourceยงfn into_simple_expr(self) -> Expr
fn into_simple_expr(self) -> Expr
Method to perform the conversion
Sourceยงimpl<E: PartialEq + EntityTrait> PartialEq for TimeLikeColumn<E>
impl<E: PartialEq + EntityTrait> PartialEq for TimeLikeColumn<E>
impl<E: Copy + EntityTrait> Copy for TimeLikeColumn<E>
impl<E: Eq + EntityTrait> Eq for TimeLikeColumn<E>
impl<E: EntityTrait> StructuralPartialEq for TimeLikeColumn<E>
Auto Trait Implementationsยง
impl<E> Freeze for TimeLikeColumn<E>
impl<E> RefUnwindSafe for TimeLikeColumn<E>
impl<E> Send for TimeLikeColumn<E>
impl<E> Sync for TimeLikeColumn<E>
impl<E> Unpin for TimeLikeColumn<E>
impl<E> UnwindSafe for TimeLikeColumn<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<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