From fa772ffacec6ca64f2afd3bc8412423dfbd420dc Mon Sep 17 00:00:00 2001 From: ByteOtter Date: Fri, 27 Sep 2024 14:32:14 +0200 Subject: [PATCH] fix query struct fields not public --- src/pathgen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathgen.rs b/src/pathgen.rs index ea1ea69..3c52bfe 100644 --- a/src/pathgen.rs +++ b/src/pathgen.rs @@ -66,7 +66,7 @@ fn gen_fn(name: &str, op_type: &str, op: &Operation) -> String { }; // Format as a struct field. fn_query_params.push(format!( - "{}\t{}: Option<{}>,\n", + "{}\tpub {}: Option<{}>,\n", make_comment(parameter_data.description, 1), parameter_data.name.into_safe(), bindgen::type_to_string(query_param_type)