Skip to main content

ReadModel

Derive Macro ReadModel 

Source
#[derive(ReadModel)]
{
    // Attributes available to this derive:
    #[sofie]
    #[read]
    #[sensitive]
}
Expand description

#[read(from = Aggregate)]; #[read(via = Base::COLUMN, field = Other::COLUMN)] reads a column of the record the base’s id column names. A field reading a sensitive one needs #[sensitive].