api-macro: add test with no parameters

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-12-02 10:55:28 +01:00
parent 21fab51bda
commit bead1e6b13

View File

@ -100,3 +100,14 @@ pub fn some_call(verbose: bool) -> Result<(), Error> {
let _ = verbose;
Ok(())
}
#[api(
input: {
properties: {}
},
)]
/// Basic function
pub fn basic_function() -> Result<(), Error> {
let _ = verbose;
Ok(())
}