proxmox_api/generated/cluster/
backup_info.rs

1pub mod not_backed_up;
2pub struct BackupInfoClient<T> {
3    client: T,
4    path: String,
5}
6impl<T> BackupInfoClient<T>
7where
8    T: crate::client::Client,
9{
10    pub fn new(client: T, parent_path: &str) -> Self {
11        Self {
12            client,
13            path: format!("{}{}", parent_path, "/backup-info"),
14        }
15    }
16}
17impl<T> BackupInfoClient<T>
18where
19    T: crate::client::Client,
20{
21    #[doc = "Index for backup info related endpoints"]
22    pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
23        let path = self.path.to_string();
24        self.client.get(&path, &())
25    }
26}
27impl GetOutputItems {
28    pub fn new(subdir: String) -> Self {
29        Self {
30            subdir,
31            additional_properties: Default::default(),
32        }
33    }
34}
35#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
36pub struct GetOutputItems {
37    #[doc = "API sub-directory endpoint"]
38    pub subdir: String,
39    #[serde(
40        flatten,
41        default,
42        skip_serializing_if = "::std::collections::HashMap::is_empty"
43    )]
44    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
45}
46impl<T> BackupInfoClient<T>
47where
48    T: crate::client::Client,
49{
50    pub fn not_backed_up(&self) -> not_backed_up::NotBackedUpClient<T> {
51        not_backed_up::NotBackedUpClient::<T>::new(self.client.clone(), &self.path)
52    }
53}