mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-07 10:55:06 +00:00
tree-wide: run cargo fmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
dfe17914cf
commit
6c5248fbc6
@ -147,7 +147,6 @@ pub struct InfluxDbHttp {
|
|||||||
pub comment: Option<String>,
|
pub comment: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[api]
|
#[api]
|
||||||
#[derive(Copy, Clone, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Deserialize, Serialize, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
/// Type of the metric server
|
/// Type of the metric server
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
|
||||||
use proxmox_schema::*;
|
use proxmox_schema::*;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::StorageStatus;
|
use crate::StorageStatus;
|
||||||
|
|
||||||
|
|
||||||
#[api]
|
#[api]
|
||||||
#[derive(Serialize, Deserialize, Default)]
|
#[derive(Serialize, Deserialize, Default)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
#[serde(rename_all = "kebab-case")]
|
||||||
|
@ -4,7 +4,7 @@ use serde_json::Value;
|
|||||||
use proxmox_router::{Permission, Router, RpcEnvironment};
|
use proxmox_router::{Permission, Router, RpcEnvironment};
|
||||||
use proxmox_schema::api;
|
use proxmox_schema::api;
|
||||||
|
|
||||||
use pbs_api_types::{PRIV_SYS_AUDIT, MetricServerInfo};
|
use pbs_api_types::{MetricServerInfo, PRIV_SYS_AUDIT};
|
||||||
use pbs_config::metrics;
|
use pbs_config::metrics;
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
|
@ -3,7 +3,7 @@ use anyhow::Error;
|
|||||||
use proxmox_router::{Permission, Router, RpcEnvironment};
|
use proxmox_router::{Permission, Router, RpcEnvironment};
|
||||||
use proxmox_schema::api;
|
use proxmox_schema::api;
|
||||||
|
|
||||||
use pbs_api_types::{TrafficControlRule, TrafficControlCurrentRate, PRIV_SYS_AUDIT};
|
use pbs_api_types::{TrafficControlCurrentRate, TrafficControlRule, PRIV_SYS_AUDIT};
|
||||||
|
|
||||||
use crate::traffic_control_cache::TRAFFIC_CONTROL_CACHE;
|
use crate::traffic_control_cache::TRAFFIC_CONTROL_CACHE;
|
||||||
|
|
||||||
|
@ -350,10 +350,10 @@ pub fn filesystem_commands() -> CommandLineInterface {
|
|||||||
CliCommand::new(&API_METHOD_CREATE_DATASTORE_DISK)
|
CliCommand::new(&API_METHOD_CREATE_DATASTORE_DISK)
|
||||||
.arg_param(&["name"])
|
.arg_param(&["name"])
|
||||||
.completion_cb("disk", complete_disk_name),
|
.completion_cb("disk", complete_disk_name),
|
||||||
).insert(
|
)
|
||||||
|
.insert(
|
||||||
"delete",
|
"delete",
|
||||||
CliCommand::new(&API_METHOD_DELETE_DATASTORE_DISK)
|
CliCommand::new(&API_METHOD_DELETE_DATASTORE_DISK).arg_param(&["name"]),
|
||||||
.arg_param(&["name"]),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
cmd_def.into()
|
cmd_def.into()
|
||||||
|
Loading…
Reference in New Issue
Block a user