proxmox_api/generated/cluster/acme/
challenge_schema.rs

1pub struct ChallengeSchemaClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> ChallengeSchemaClient<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, "/challenge-schema"),
13        }
14    }
15}
16impl<T> ChallengeSchemaClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Get schema of ACME challenge types."]
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(id: String, name: String, schema: SchemaGetOutputItemsSchema, ty: String) -> Self {
28        Self {
29            id,
30            name,
31            schema,
32            ty,
33        }
34    }
35}
36#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
37pub struct GetOutputItems {
38    pub id: String,
39    #[doc = "Human readable name, falls back to id"]
40    pub name: String,
41    pub schema: SchemaGetOutputItemsSchema,
42    #[serde(rename = "type")]
43    pub ty: String,
44}
45#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
46pub struct SchemaGetOutputItemsSchema {
47    #[serde(
48        flatten,
49        default,
50        skip_serializing_if = "::std::collections::HashMap::is_empty"
51    )]
52    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
53}