pub struct JsonColumn<E: EntityTrait>(pub E::Column);Tuple Fieldsยง
ยง0: E::ColumnImplementationsยง
Sourceยงimpl<E: EntityTrait> JsonColumn<E>
impl<E: EntityTrait> JsonColumn<E>
Sourcepub fn def(&self) -> ColumnDef
Available on crate feature with-json only.
pub fn def(&self) -> ColumnDef
with-json only.Get the column definition with SQL attributes
Sourcepub fn enum_type_name(&self) -> Option<&'static str>
Available on crate feature with-json only.
pub fn enum_type_name(&self) -> Option<&'static str>
with-json only.Get the enum type name if this is a enum column
Sourcepub fn entity_name(&self) -> DynIden
Available on crate feature with-json only.
pub fn entity_name(&self) -> DynIden
with-json only.Get the name of the entity the column belongs to
Sourcepub fn as_column_ref(&self) -> (DynIden, DynIden)
Available on crate feature with-json only.
pub fn as_column_ref(&self) -> (DynIden, DynIden)
with-json only.Get the table.column reference
pub fn eq<V>(&self, v: V) -> Expr
Available on crate feature
with-json only.pub fn ne<V>(&self, v: V) -> Expr
Available on crate feature
with-json only.pub fn count(&self) -> Expr
Available on crate feature
with-json only.pub fn is_null(&self) -> Expr
Available on crate feature
with-json only.pub fn is_not_null(&self) -> Expr
Available on crate feature
with-json only.pub fn if_null<V>(&self, v: V) -> Expr
Available on crate feature
with-json only.pub fn is_in<V, I>(&self, v: I) -> Expr
Available on crate feature
with-json only.pub fn is_not_in<V, I>(&self, v: I) -> Expr
Available on crate feature
with-json only.Sourcepub fn eq_any<V, I>(&self, v: I) -> Expr
Available on crate features with-json and postgres-array only.
pub fn eq_any<V, I>(&self, v: I) -> Expr
with-json and postgres-array only.= ANY(..) operator. Postgres only.
pub fn in_subquery(&self, s: SelectStatement) -> Expr
Available on crate feature
with-json only.pub fn not_in_subquery(&self, s: SelectStatement) -> Expr
Available on crate feature
with-json only.Trait Implementationsยง
Sourceยงimpl<E: Clone + EntityTrait> Clone for JsonColumn<E>
impl<E: Clone + EntityTrait> Clone for JsonColumn<E>
Sourceยงfn clone(&self) -> JsonColumn<E>
fn clone(&self) -> JsonColumn<E>
Returns a duplicate of the value. Read more
1.0.0ยง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 JsonColumn<E>
impl<E: Debug + EntityTrait> Debug for JsonColumn<E>
Sourceยงimpl<E: Hash + EntityTrait> Hash for JsonColumn<E>
impl<E: Hash + EntityTrait> Hash for JsonColumn<E>
Sourceยงimpl<E: EntityTrait> Iden for JsonColumn<E>
impl<E: EntityTrait> Iden for JsonColumn<E>
Sourceยงimpl<E: EntityTrait> IntoSimpleExpr for JsonColumn<E>
impl<E: EntityTrait> IntoSimpleExpr for JsonColumn<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 JsonColumn<E>
impl<E: PartialEq + EntityTrait> PartialEq for JsonColumn<E>
impl<E: Copy + EntityTrait> Copy for JsonColumn<E>
impl<E: Eq + EntityTrait> Eq for JsonColumn<E>
impl<E: EntityTrait> StructuralPartialEq for JsonColumn<E>
Auto Trait Implementationsยง
impl<E> Freeze for JsonColumn<E>
impl<E> RefUnwindSafe for JsonColumn<E>
impl<E> Send for JsonColumn<E>
impl<E> Sync for JsonColumn<E>
impl<E> Unpin for JsonColumn<E>
impl<E> UnwindSafe for JsonColumn<E>
Blanket Implementationsยง
ยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
ยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
ยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงunsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit)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