]> git.proxmox.com Git - proxmox.git/commitdiff
api: set missing description of Option types
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 17 Jun 2019 13:06:18 +0000 (15:06 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 17 Jun 2019 13:06:18 +0000 (15:06 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api/src/api_type.rs

index f06c31d52003511847698568f51e279a612efae0..00eb003e32da8e0f6ec3417fce3da28e15539751 100644 (file)
@@ -197,6 +197,7 @@ impl<T: ApiType> ApiType for Option<T> {
         DATA.once.call_once(|| {
             let info = T::type_info();
             DATA.name.set(Some(format!("optional: {}", info.name)));
+            DATA.description.set(Some(format!("optional: {}", info.description)));
             DATA.info.set(Some(TypeInfo {
                 name: unsafe { (*DATA.name.as_ptr()).as_ref().unwrap().as_str() },
                 description: unsafe { (*DATA.description.as_ptr()).as_ref().unwrap().as_str() },