]> git.proxmox.com Git - proxmox.git/commit
api-macro: support optional return values
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 18 Dec 2020 11:25:51 +0000 (12:25 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 22 Dec 2020 06:02:47 +0000 (07:02 +0100)
commit4916d5b10d2bc95b6abcea4568879f75f15f25be
tree238be1c59756951363eef0dd9136e8524cf18e3e
parente8998851f860283a8cb79db4f997a5f21175f228
api-macro: support optional return values

The return specification can now include an `optional`
field.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api-macro/src/api/method.rs
proxmox-api-macro/src/api/mod.rs
proxmox-api-macro/src/api/structs.rs
proxmox-api-macro/src/util.rs
proxmox-api-macro/tests/api1.rs
proxmox-api-macro/tests/ext-schema.rs
proxmox-api-macro/tests/types.rs