Skip to main content

default_id_name

Function default_id_name 

Source
pub fn default_id_name(interface: &Ident) -> Ident
Expand description

What an interface’s ADDRESS is called: <Interface>Id.

A SUM over the members’ own ids — one variant per member, carrying <M as Identifiable>::Id — because an interface addresses a member row by (kind, id) and the members need not agree about what an id IS. Heterogeneous member id types are legal by design: a Video keyed by an integer and an Audio keyed by text are one interface, and the enum is what lets one projection carry either.

The RECORD’s own <R>Id convention does not exist to clash with — a record’s id is a bare column type and gets no emitted name — so the suffix is free.