logo

Trait sea_orm::entity::prelude::PrimaryKeyToColumn[][src]

pub trait PrimaryKeyToColumn {
    type Column: ColumnTrait;
    fn into_column(self) -> Self::Column;
fn from_column(col: Self::Column) -> Option<Self>
    where
        Self: Sized
; }
Expand description

How to map a Primary Key to a column

Associated Types

Required methods

Method to map a primary key to a column in an Entity

Method to map a primary key from a column in an Entity

Implementors