Skip to main content

RelationTrait

Trait RelationTrait 

pub trait RelationTrait:
    IntoEnumIterator
    + Debug
    + 'static {
    // Required method
    fn def(&self) -> RelationDef;
}
Expand description

Defines the relations of an Entity

Required Methods§

fn def(&self) -> RelationDef

The method to call

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl RelationTrait for Relation

§

fn def(&self) -> RelationDef

Implementors§