PrimaryKeyToColumn

Trait PrimaryKeyToColumn 

Source
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

Trait 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

Implementorsยง

Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::permission::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::resource::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::role::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::role_hierarchy::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::role_permission::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::user_override::PrimaryKey

Available on crate feature rbac only.
Sourceยง

impl PrimaryKeyToColumn for sea_orm::rbac::entity::user_role::PrimaryKey

Available on crate feature rbac only.