Skip to main content

PivotOwner

Trait PivotOwner 

Source
pub trait PivotOwner<K>: EntityTrait {
    // Required method
    fn morph_type() -> Option<&'static str>;
}
Expand description

An entity that can own rows of a pivot relation of kind K: any entity for Plain, a Morphable one for Morphed.

Required Methods§

Source

fn morph_type() -> Option<&'static str>

The value for the pivot’s *_type column, if the relation has one.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§