Related

Trait Related 

Source
pub trait Related<R>
where R: EntityTrait,
{ // Required method fn to() -> RelationDef; // Provided methods fn via() -> Option<RelationDef> { ... } fn find_related() -> Select<R> { ... } }
Expand description

A trait to relate two Entities for them to be joined in queries

Required Methods§

Source

fn to() -> RelationDef

The RelationDef to the related Entity

Provided Methods§

Source

fn via() -> Option<RelationDef>

The RelationDef to the junction table, if any

Find related Entities

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 Related<Entity> for sea_orm::rbac::entity::role_permission::Entity

Available on crate feature rbac only.
Source§

impl Related<Entity> for sea_orm::rbac::entity::user_override::Entity

Available on crate feature rbac only.
Source§

impl Related<Entity> for sea_orm::rbac::entity::role_permission::Entity

Available on crate feature rbac only.
Source§

impl Related<Entity> for sea_orm::rbac::entity::user_override::Entity

Available on crate feature rbac only.
Source§

impl Related<Entity> for sea_orm::rbac::entity::role_permission::Entity

Available on crate feature rbac only.
Source§

impl Related<Entity> for sea_orm::rbac::entity::user_role::Entity

Available on crate feature rbac only.