pub enum Column {
KeyId,
Hash,
HashVersion,
ProjectId,
Name,
CreatedAt,
Metadata,
}
Expand description
Generated by sea-orm-macros
Variants§
KeyId
Generated by sea-orm-macros
Hash
Generated by sea-orm-macros
HashVersion
Generated by sea-orm-macros
ProjectId
Generated by sea-orm-macros
Name
Generated by sea-orm-macros
CreatedAt
Generated by sea-orm-macros
Metadata
Generated by sea-orm-macros
Trait Implementations§
Source§impl ColumnTrait for Column
impl ColumnTrait for Column
type EntityName = Entity
Source§fn select_as(&self, expr: Expr) -> SimpleExpr
fn select_as(&self, expr: Expr) -> SimpleExpr
Cast column expression used in select statement.
It only cast database enum as text if it’s an enum column.
Source§fn save_as(&self, val: Expr) -> SimpleExpr
fn save_as(&self, val: Expr) -> SimpleExpr
Cast value of a column into the correct type for database storage.
It only cast text as enum type if it’s an enum column.
Source§fn entity_name(&self) -> Arc<dyn Iden>
fn entity_name(&self) -> Arc<dyn Iden>
Get the name of the entity the column belongs to
Source§fn as_column_ref(&self) -> (Arc<dyn Iden>, Arc<dyn Iden>)
fn as_column_ref(&self) -> (Arc<dyn Iden>, Arc<dyn Iden>)
get the name of the entity the column belongs to
fn eq<V>(&self, v: V) -> SimpleExpr
fn ne<V>(&self, v: V) -> SimpleExpr
fn gt<V>(&self, v: V) -> SimpleExpr
fn gte<V>(&self, v: V) -> SimpleExpr
fn lt<V>(&self, v: V) -> SimpleExpr
fn lte<V>(&self, v: V) -> SimpleExpr
Source§fn not_between<V>(&self, a: V, b: V) -> SimpleExpr
fn not_between<V>(&self, a: V, b: V) -> SimpleExpr
Source§fn starts_with(&self, s: &str) -> SimpleExpr
fn starts_with(&self, s: &str) -> SimpleExpr
Source§fn max(&self) -> SimpleExpr
fn max(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn min(&self) -> SimpleExpr
fn min(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn sum(&self) -> SimpleExpr
fn sum(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn count(&self) -> SimpleExpr
fn count(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn is_null(&self) -> SimpleExpr
fn is_null(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn is_not_null(&self) -> SimpleExpr
fn is_not_null(&self) -> SimpleExpr
See also SeaQuery’s method with same name.
Source§fn if_null<V>(&self, v: V) -> SimpleExpr
fn if_null<V>(&self, v: V) -> SimpleExpr
Perform an operation if the column is null
fn is_in<V, I>(&self, v: I) -> SimpleExpr
fn is_not_in<V, I>(&self, v: I) -> SimpleExpr
fn in_subquery(&self, s: SelectStatement) -> SimpleExpr
fn not_in_subquery(&self, s: SelectStatement) -> SimpleExpr
Source§fn select_enum_as(&self, expr: Expr) -> SimpleExpr
fn select_enum_as(&self, expr: Expr) -> SimpleExpr
Cast enum column as text; do nothing if
self
is not an enum.Source§fn save_enum_as(&self, val: Expr) -> SimpleExpr
fn save_enum_as(&self, val: Expr) -> SimpleExpr
Cast value of an enum column as enum type; do nothing if
self
is not an enum.Source§impl IdenStatic for Column
impl IdenStatic for Column
Source§impl IntoEnumIterator for Column
impl IntoEnumIterator for Column
type Iterator = ColumnIter
fn iter() -> ColumnIter ⓘ
impl Copy for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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<E, C> IdentityOf<E> for Cwhere
E: EntityTrait<Column = C>,
C: ColumnTrait,
impl<E, C> IdentityOf<E> for Cwhere
E: EntityTrait<Column = C>,
C: ColumnTrait,
Source§fn identity_of(self) -> Identity
fn identity_of(self) -> Identity
Method to call to perform this check
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 Twhere
T: 'static + IntoIden,
impl<T> IntoColumnRef for Twhere
T: 'static + IntoIden,
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 moreSource§impl<T> IntoIdentity for Twhere
T: IdenStatic,
impl<T> IntoIdentity for Twhere
T: IdenStatic,
Source§fn into_identity(self) -> Identity
fn into_identity(self) -> Identity
Method to perform the conversion
Source§impl<I> IntoIndexColumn for Iwhere
I: IntoIden,
impl<I> IntoIndexColumn for Iwhere
I: IntoIden,
fn into_index_column(self) -> IndexColumn
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<C> IntoSimpleExpr for Cwhere
C: ColumnTrait,
impl<C> IntoSimpleExpr for Cwhere
C: ColumnTrait,
Source§fn into_simple_expr(self) -> SimpleExpr
fn into_simple_expr(self) -> SimpleExpr
Method to perform the conversion