Skip to main content

CompleteModel

Trait CompleteModel 

Source
pub trait CompleteModel: ThingModel + MaterializeModel {
    type Create: IntoEncodedCreate + Clone;

    // Required method
    fn iid(&self) -> &str;
}
Expand description

A complete materialized generated model with a mandatory canonical IID.

Required Associated Types§

Source

type Create: IntoEncodedCreate + Clone

The generated payload accepted when creating this model.

Required Methods§

Source

fn iid(&self) -> &str

Return the canonical IID of the materialized thing.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§