Skip to main content

ThingModel

Trait ThingModel 

Source
pub trait ThingModel: Model {
    // Required method
    fn thing_kind() -> ThingKind;
}
Expand description

An entity or relation schema model.

Required Methods§

Source

fn thing_kind() -> ThingKind

Return whether this generated model represents an entity or relation.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§