pub trait PrimaryKeyToColumn {
    type Column: ColumnTrait;

    // Required methods
    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

Required Associated Types§

Required Methods§

source

fn into_column(self) -> Self::Column

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

source

fn from_column(col: Self::Column) -> Option<Self>where Self: Sized,

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

Implementations on Foreign Types§

source§

impl PrimaryKeyToColumn for PrimaryKey

Implementors§

source§

impl PrimaryKeyToColumn for leetcode_tui_rs::entities::question::PrimaryKey

source§

impl PrimaryKeyToColumn for leetcode_tui_rs::entities::question_topic_tag::PrimaryKey

source§

impl PrimaryKeyToColumn for leetcode_tui_rs::entities::topic_tag::PrimaryKey