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ยง
type Column: ColumnTrait
Required Methodsยง
Sourcefn into_column(self) -> Self::Column
fn into_column(self) -> Self::Column
Method to map a primary key to a column in an Entity
Sourcefn from_column(col: Self::Column) -> Option<Self>where
Self: Sized,
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.
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.
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.
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.
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.
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.
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.
impl PrimaryKeyToColumn for sea_orm::rbac::entity::user_role::PrimaryKey
Available on crate feature
rbac only.