From 3f37290ffcd18f11b7002e4d258e1a864e03aead Mon Sep 17 00:00:00 2001 From: Kurt Wolf Date: Mon, 21 Oct 2024 08:58:58 -0700 Subject: [PATCH] add pub to model builders --- macro/src/codegen/model_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macro/src/codegen/model_builder.rs b/macro/src/codegen/model_builder.rs index eadbf29..ce7980e 100644 --- a/macro/src/codegen/model_builder.rs +++ b/macro/src/codegen/model_builder.rs @@ -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| {