RelationTrait

Trait RelationTrait 

Source
pub trait RelationTrait:
    Iterable
    + Debug
    + 'static {
    // Required method
    fn def(&self) -> RelationDef;

    // Provided method
    fn name(&self) -> String { ... }
}
Expand description

Defines the relations of an Entity

Required Methods§

Source

fn def(&self) -> RelationDef

Creates a RelationDef

Provided Methods§

Source

fn name(&self) -> String

Name of the relation enum

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl RelationTrait for sea_orm::rbac::entity::permission::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::resource::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::role::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::role_hierarchy::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::role_permission::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::user_override::Relation

Available on crate feature rbac only.
Source§

impl RelationTrait for sea_orm::rbac::entity::user_role::Relation

Available on crate feature rbac only.