macro_rules! foreign { ($table: literal, $name: literal) => { ... }; }
Expand description
A macro for creating a foreign field.
Using [foreign_as
] is recommended to prevent conflicts where
both a local and foreign field have the same name.
§Arguments
$table
- The table to join on, as a &’static str.$name
- The name of the field, as a &’static str.