proxmox_api/generated/nodes/node/sdn/zones/zone/
content.rs

1pub struct ContentClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> ContentClient<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, "/content"),
13        }
14    }
15}
16impl<T> ContentClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "List zone content."]
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(vnet: String) -> Self {
28        Self {
29            vnet,
30            status: Default::default(),
31            statusmsg: 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 = "Status."]
40    pub status: Option<String>,
41    #[serde(skip_serializing_if = "Option::is_none", default)]
42    #[doc = "Status details"]
43    pub statusmsg: Option<String>,
44    #[doc = "Vnet identifier."]
45    pub vnet: String,
46    #[serde(
47        flatten,
48        default,
49        skip_serializing_if = "::std::collections::HashMap::is_empty"
50    )]
51    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
52}