update proxmox crate to 0.2.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
		| @ -38,7 +38,7 @@ pam-sys = "0.5" | |||||||
| percent-encoding = "2.1" | percent-encoding = "2.1" | ||||||
| pin-utils = "0.1.0" | pin-utils = "0.1.0" | ||||||
| pathpatterns = "0.1.2" | 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 = { 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 = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro" ] } | ||||||
| proxmox-fuse = "0.1.0" | proxmox-fuse = "0.1.0" | ||||||
|  | |||||||
| @ -535,7 +535,7 @@ macro_rules! add_common_prune_prameters { | |||||||
|  |  | ||||||
| pub const API_RETURN_SCHEMA_PRUNE: Schema = ArraySchema::new( | pub const API_RETURN_SCHEMA_PRUNE: Schema = ArraySchema::new( | ||||||
|     "Returns the list of snapshots and a flag indicating if there are kept or removed.", |     "Returns the list of snapshots and a flag indicating if there are kept or removed.", | ||||||
|     PruneListItem::API_SCHEMA |     &PruneListItem::API_SCHEMA | ||||||
| ).schema(); | ).schema(); | ||||||
|  |  | ||||||
| const API_METHOD_PRUNE: ApiMethod = ApiMethod::new( | const API_METHOD_PRUNE: ApiMethod = ApiMethod::new( | ||||||
|  | |||||||
| @ -127,7 +127,7 @@ async fn garbage_collection_status(param: Value) -> Result<Value, Error> { | |||||||
|  |  | ||||||
|     let mut result = client.get(&path, None).await?; |     let mut result = client.get(&path, None).await?; | ||||||
|     let mut data = result["data"].take(); |     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(); |     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 result = client.get("api2/json/nodes/localhost/tasks", Some(args)).await?; | ||||||
|  |  | ||||||
|     let mut data = result["data"].take(); |     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() |     let options = default_table_format_options() | ||||||
|         .column(ColumnConfig::new("starttime").right_align(false).renderer(tools::format::render_epoch)) |         .column(ColumnConfig::new("starttime").right_align(false).renderer(tools::format::render_epoch)) | ||||||
|  | |||||||
| @ -170,7 +170,7 @@ fn render_result( | |||||||
| ) -> Result<(), Error> { | ) -> Result<(), Error> { | ||||||
|  |  | ||||||
|     let mut data = serde_json::to_value(benchmark_result)?; |     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> { |     let render_speed = |value: &Value, _record: &Value| -> Result<String, Error> { | ||||||
|         match value["speed"].as_f64() { |         match value["speed"].as_f64() { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user