Skip to main content

ViewModel

Derive Macro ViewModel 

Source
#[derive(ViewModel)]
{
    // Attributes available to this derive:
    #[orm]
}
Expand description

Derive ViewModel metadata for a struct.

This is an alias of Model intended to express that the type is a read/view model (optionally including JOINs), while write models are derived separately.