]> git.proxmox.com Git - proxmox-backup.git/commitdiff
update proxmox crate to 0.2.0
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Jul 2020 09:05:19 +0000 (11:05 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 10 Jul 2020 09:08:27 +0000 (11:08 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cargo.toml
src/api2/admin/datastore.rs
src/bin/proxmox-backup-manager.rs
src/bin/proxmox_backup_client/benchmark.rs

index 94ec63dff111c6c1db1290721a605d9e6f110245..6058276d6bdc4d9d7d396db2ed444d4c0037ab68 100644 (file)
@@ -38,7 +38,7 @@ pam-sys = "0.5"
 percent-encoding = "2.1"
 pin-utils = "0.1.0"
 pathpatterns = "0.1.2"
-proxmox = { version = "0.1.42", features = [ "sortable-macro", "api-macro" ] }
+proxmox = { version = "0.2.0", features = [ "sortable-macro", "api-macro" ] }
 #proxmox = { git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox", version = "0.1.2", features = [ "sortable-macro", "api-macro" ] }
 #proxmox = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro" ] }
 proxmox-fuse = "0.1.0"
index 66776ef65921e6c0a98bbfd6cc0f45f493742d3e..0a93b47c1e7acc89ec734053b5e334d6418f57d7 100644 (file)
@@ -535,7 +535,7 @@ macro_rules! add_common_prune_prameters {
 
 pub const API_RETURN_SCHEMA_PRUNE: Schema = ArraySchema::new(
     "Returns the list of snapshots and a flag indicating if there are kept or removed.",
-    PruneListItem::API_SCHEMA
+    &PruneListItem::API_SCHEMA
 ).schema();
 
 const API_METHOD_PRUNE: ApiMethod = ApiMethod::new(
index 7d6af9563fcb790176c47b978e1e66db911979f4..7ae0852ffa04da407e84ec681395b4f33573cb53 100644 (file)
@@ -127,7 +127,7 @@ async fn garbage_collection_status(param: Value) -> Result<Value, Error> {
 
     let mut result = client.get(&path, None).await?;
     let mut data = result["data"].take();
-    let schema = api2::admin::datastore::API_RETURN_SCHEMA_GARBAGE_COLLECTION_STATUS;
+    let schema = &api2::admin::datastore::API_RETURN_SCHEMA_GARBAGE_COLLECTION_STATUS;
 
     let options = default_table_format_options();
 
@@ -193,7 +193,7 @@ async fn task_list(param: Value) -> Result<Value, Error> {
     let mut result = client.get("api2/json/nodes/localhost/tasks", Some(args)).await?;
 
     let mut data = result["data"].take();
-    let schema = api2::node::tasks::API_RETURN_SCHEMA_LIST_TASKS;
+    let schema = &api2::node::tasks::API_RETURN_SCHEMA_LIST_TASKS;
 
     let options = default_table_format_options()
         .column(ColumnConfig::new("starttime").right_align(false).renderer(tools::format::render_epoch))
index 434250cfd1977b4ea503c79aebc62a6cf932ae40..6392f282788a565ca502e2e4b28974b86e34eecc 100644 (file)
@@ -170,7 +170,7 @@ fn render_result(
 ) -> Result<(), Error> {
 
     let mut data = serde_json::to_value(benchmark_result)?;
-    let schema = BenchmarkResult::API_SCHEMA;
+    let schema = &BenchmarkResult::API_SCHEMA;
 
     let render_speed = |value: &Value, _record: &Value| -> Result<String, Error> {
         match value["speed"].as_f64() {