|
@@ -43,7 +43,8 @@ fn parse_fk(attrs: &[syn::Attribute]) -> bool {
|
|
|
/// The following are understood for the Entity struct:
|
|
|
/// - `#[microrm_internal]`: this is internal to the microrm crate (of extremely limited usefulness
|
|
|
/// outside the microrm library)
|
|
|
-/// The following are understood on individual fields
|
|
|
+///
|
|
|
+/// The following are understood on individual fields:
|
|
|
/// - `#[microrm_foreign]`: this is a foreign key (and the field must be of a type implementing `EntityID`)
|
|
|
#[proc_macro_derive(Entity, attributes(microrm_internal, microrm_foreign))]
|
|
|
pub fn derive_entity(tokens: TokenStream) -> TokenStream {
|