Skip to main content

ModelMixin

Trait ModelMixin 

Source
pub trait ModelMixin {
    // Required method
    fn mixin_name() -> &'static str;
}
Expand description

Marker trait for abstract model mixins (#[derive(ModelMixin)]). A mixin is never a real table — its fields get flattened into models that use it.

Required Methods§

Source

fn mixin_name() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§