proxmox_api/generated/cluster/backup_info/
not_backed_up.rs

1pub struct NotBackedUpClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> NotBackedUpClient<T>
6where
7    T: crate::client::Client,
8{
9    pub fn new(client: T, parent_path: &str) -> Self {
10        Self {
11            client,
12            path: format!("{}{}", parent_path, "/not-backed-up"),
13        }
14    }
15}
16impl<T> NotBackedUpClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Shows all guests which are not covered by any backup job."]
21    pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
22        let path = self.path.to_string();
23        self.client.get(&path, &())
24    }
25}
26impl GetOutputItems {
27    pub fn new(ty: Type, vmid: u64) -> Self {
28        Self {
29            ty,
30            vmid,
31            name: Default::default(),
32            additional_properties: Default::default(),
33        }
34    }
35}
36#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
37pub struct GetOutputItems {
38    #[serde(skip_serializing_if = "Option::is_none", default)]
39    #[doc = "Name of the guest"]
40    pub name: Option<String>,
41    #[serde(rename = "type")]
42    #[doc = "Type of the guest."]
43    pub ty: Type,
44    #[serde(
45        serialize_with = "crate::types::serialize_int",
46        deserialize_with = "crate::types::deserialize_int"
47    )]
48    #[doc = "VMID of the guest."]
49    pub vmid: u64,
50    #[serde(
51        flatten,
52        default,
53        skip_serializing_if = "::std::collections::HashMap::is_empty"
54    )]
55    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
56}
57#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
58pub enum Type {
59    #[serde(rename = "lxc")]
60    Lxc,
61    #[serde(rename = "qemu")]
62    Qemu,
63}