From a47a02ae6278b214a3039991e6a5315a8cba579f Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 16 Dec 2019 13:34:49 +0100 Subject: [PATCH] src/bin/proxmox-backup-client.rs: use #[api] macro --- src/bin/proxmox-backup-client.rs | 707 +++++++++++++------------------ 1 file changed, 294 insertions(+), 413 deletions(-) diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index c47a1bad..c218c49c 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -10,7 +10,7 @@ use std::os::unix::fs::OpenOptionsExt; use proxmox::{sortable, identity}; use proxmox::tools::fs::{file_get_contents, file_get_json, file_set_contents, image_size}; -use proxmox::api::{ApiFuture, ApiHandler, ApiMethod, RpcEnvironment}; +use proxmox::api::{ApiHandler, ApiMethod, RpcEnvironment}; use proxmox::api::schema::*; use proxmox::api::cli::*; use proxmox::api::api; @@ -44,6 +44,22 @@ const REPO_URL_SCHEMA: Schema = StringSchema::new("Repository URL.") .max_length(256) .schema(); +const BACKUP_SOURCE_SCHEMA: Schema = StringSchema::new( + "Backup source specification ([