#[derive(DeriveColumn)]
{
// Attributes available to this derive:
#[sea_orm]
}
Expand description
The DeriveColumn derive macro will implement [ColumnTrait] for Columns. It defines the identifier of each column by implementing Iden and IdenStatic. The EnumIter is also derived, allowing iteration over all enum variants.
ยงUsage
use sea_orm::entity::prelude::*;
#[derive(Copy, Clone, Debug, EnumIter, DeriveColumn)]
pub enum Column {
CakeId,
FillingId,
}