From 1e53ed783d033c73f94d07957cec5d00379dd0b3 Mon Sep 17 00:00:00 2001 From: ByteOtter Date: Mon, 26 Feb 2024 00:20:21 +0100 Subject: [PATCH] make all typ fields public --- src/structgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structgen.rs b/src/structgen.rs index 0cbcb39..1ccdc1a 100644 --- a/src/structgen.rs +++ b/src/structgen.rs @@ -31,7 +31,7 @@ pub fn gen(name: &str, schema: &Schema) -> Option { } } result += "\t"; - result += &prop_name.clone().into_safe(); + result += &format!("pub {}", &prop_name.clone().into_safe()); result += ": "; result += &type_name; result += ",\n";