RelationTrait

Trait RelationTrait 

Source
pub trait RelationTrait:
    IntoEnumIterator
    + 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§