Skip to content

Commit

Permalink
Documented constant generated by macro
Browse files Browse the repository at this point in the history
  • Loading branch information
gammelalf committed Sep 8, 2024
1 parent 9fd3b67 commit 1a4f7e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rorm-macro/src/generate/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn generate_model(model: &AnalyzedModel) -> TokenStream {
#field_declarations
#fields_struct

#[doc = concat!("Constant representing the model [`", stringify!(#ident), "`] as a value")]
#[allow(non_upper_case_globals)]
#vis const #ident: #fields_struct_ident<#ident> = ::rorm::model::ConstNew::NEW;

Expand Down

0 comments on commit 1a4f7e8

Please sign in to comment.