mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-13 17:56:37 +00:00
api: set missing description of Option types
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
85a29246d5
commit
adb425aeb2
@ -197,6 +197,7 @@ impl<T: ApiType> ApiType for Option<T> {
|
|||||||
DATA.once.call_once(|| {
|
DATA.once.call_once(|| {
|
||||||
let info = T::type_info();
|
let info = T::type_info();
|
||||||
DATA.name.set(Some(format!("optional: {}", info.name)));
|
DATA.name.set(Some(format!("optional: {}", info.name)));
|
||||||
|
DATA.description.set(Some(format!("optional: {}", info.description)));
|
||||||
DATA.info.set(Some(TypeInfo {
|
DATA.info.set(Some(TypeInfo {
|
||||||
name: unsafe { (*DATA.name.as_ptr()).as_ref().unwrap().as_str() },
|
name: unsafe { (*DATA.name.as_ptr()).as_ref().unwrap().as_str() },
|
||||||
description: unsafe { (*DATA.description.as_ptr()).as_ref().unwrap().as_str() },
|
description: unsafe { (*DATA.description.as_ptr()).as_ref().unwrap().as_str() },
|
||||||
|
Loading…
Reference in New Issue
Block a user