proxmox_api/generated/nodes/node/capabilities/
qemu.rs1pub mod cpu;
2pub mod machines;
3pub struct QemuClient<T> {
4 client: T,
5 path: String,
6}
7impl<T> QemuClient<T>
8where
9 T: crate::client::Client,
10{
11 pub fn new(client: T, parent_path: &str) -> Self {
12 Self {
13 client,
14 path: format!("{}{}", parent_path, "/qemu"),
15 }
16 }
17}
18impl<T> QemuClient<T>
19where
20 T: crate::client::Client,
21{
22 #[doc = "QEMU capabilities index."]
23 pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
24 let path = self.path.to_string();
25 self.client.get(&path, &())
26 }
27}
28#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
29pub struct GetOutputItems {
30 #[serde(
31 flatten,
32 default,
33 skip_serializing_if = "::std::collections::HashMap::is_empty"
34 )]
35 pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
36}
37impl<T> QemuClient<T>
38where
39 T: crate::client::Client,
40{
41 pub fn cpu(&self) -> cpu::CpuClient<T> {
42 cpu::CpuClient::<T>::new(self.client.clone(), &self.path)
43 }
44}
45impl<T> QemuClient<T>
46where
47 T: crate::client::Client,
48{
49 pub fn machines(&self) -> machines::MachinesClient<T> {
50 machines::MachinesClient::<T>::new(self.client.clone(), &self.path)
51 }
52}