Model

Trait Model 

Source
pub trait Model {
    type View: View;
    type Mutable: Mutable;

    // Required methods
    fn collection() -> CollectionId;
    fn initialize_new_entity(&self, entity: &Entity);
}
Expand description

A model is a struct that represents the present values for a given entity Schema is defined primarily by the Model object, and the View is derived from that via macro.

Required Associated Types§

Required Methods§

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§