Skip to main content

find_composite_id_model

Function find_composite_id_model 

pub fn find_composite_id_model(schema: &Schema) -> Option<&Model>
Expand description

The first model declaring a composite primary key, if any.

Matches on the raw attribute text (@@id() rather than a parsed form, because that is what the parser preserves and what the macro path has always matched on — keeping the two identical is the point of this function existing.