Skip to content

Commit

Permalink
add pub to model builders
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Oct 21, 2024
1 parent fa5c294 commit 3f37290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macro/src/codegen/model_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn struct_ModelBuilder(ast: &DeriveInput, attr: &ModelMeta) -> TokenStream {
let settable = attr.database_columns().map(|c| {
let name = &c.ident;
let ty = &c.ty;
quote! { #name: std::option::Option<#ty> }
quote! { pub #name: std::option::Option<#ty> }
});

let methods = attr.database_columns().map(|c| {
Expand Down

0 comments on commit 3f37290

Please sign in to comment.