]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/bin/docgen.rs
move acl to pbs_config workspaces, pbs_api_types cleanups
[proxmox-backup.git] / src / bin / docgen.rs
index 6eb92a42989126c6dc47e5cf82d8b471dbad8106..b54e418531288f303c867989e1d068533e2eb50b 100644 (file)
@@ -25,13 +25,9 @@ use proxmox::{
     },
 };
 
-use proxmox_backup::{
-    api2,
-    config::{
-        self,
-        acl::PRIVILEGES,
-    },
-};
+use pbs_api_types::PRIVILEGES;
+
+use proxmox_backup::{api2, config};
 
 fn get_args() -> (String, Vec<String>) {
 
@@ -62,7 +58,7 @@ fn main() -> Result<(), Error> {
             "sync.cfg" => dump_section_config(&pbs_config::sync::CONFIG),
             "verification.cfg" => dump_section_config(&pbs_config::verify::CONFIG),
             "media-pool.cfg" => dump_section_config(&pbs_config::media_pool::CONFIG),
-            "config::acl::Role" => dump_enum_properties(&config::acl::Role::API_SCHEMA)?,
+            "config::acl::Role" => dump_enum_properties(&pbs_api_types::Role::API_SCHEMA)?,
             _ => bail!("docgen: got unknown type"),
         };
         println!("{}", text);