From dd8ccd80d95ab3caacb62224d92174094c516597 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 27 Feb 2020 13:08:59 +0100 Subject: [PATCH] api-macro: make API_{RETURN,PARAMETER}_SCHEMA_... public Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/method.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index ce332a76..bbf7c274 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -85,7 +85,7 @@ pub fn handle_method(mut attribs: JSONObject, mut func: syn::ItemFn) -> Result - #vis const #return_schema_name: &'static ::proxmox::api::schema::Schema = (#inner); + pub const #return_schema_name: &'static ::proxmox::api::schema::Schema = (#inner); }; returns_schema_setter = quote! { .returns(#return_schema_name) }; } @@ -99,7 +99,7 @@ pub fn handle_method(mut attribs: JSONObject, mut func: syn::ItemFn) -> Result #returns_schema_definition - #vis const #input_schema_name: &'static ::proxmox::api::schema::ObjectSchema = + pub const #input_schema_name: &'static ::proxmox::api::schema::ObjectSchema = (&#input_schema); #vis const #api_method_name: ::proxmox::api::ApiMethod =