proxmox_api/generated/cluster/acme/
meta.rs

1pub struct MetaClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> MetaClient<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, "/meta"),
13        }
14    }
15}
16impl<T> MetaClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Retrieve ACME Directory Meta Information"]
21    pub fn get(&self, params: GetParams) -> Result<GetOutput, T::Error> {
22        let path = self.path.to_string();
23        self.client.get(&path, &params)
24    }
25}
26#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
27pub struct GetOutput {
28    #[serde(rename = "caaIdentities")]
29    #[serde(skip_serializing_if = "::std::vec::Vec::is_empty", default)]
30    #[doc = "Hostnames referring to the ACME servers."]
31    pub caaidentities: Vec<String>,
32    #[serde(rename = "externalAccountRequired")]
33    #[serde(
34        serialize_with = "crate::types::serialize_bool_optional",
35        deserialize_with = "crate::types::deserialize_bool_optional"
36    )]
37    #[serde(skip_serializing_if = "Option::is_none", default)]
38    #[doc = "EAB Required"]
39    pub externalaccountrequired: Option<bool>,
40    #[serde(rename = "termsOfService")]
41    #[serde(skip_serializing_if = "Option::is_none", default)]
42    #[doc = "ACME TermsOfService URL."]
43    pub termsofservice: Option<String>,
44    #[serde(skip_serializing_if = "Option::is_none", default)]
45    #[doc = "URL to more information about the ACME server."]
46    pub website: Option<String>,
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}
54#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
55pub struct GetParams {
56    #[serde(skip_serializing_if = "Option::is_none", default)]
57    #[doc = "URL of ACME CA directory endpoint."]
58    pub directory: Option<String>,
59    #[serde(
60        flatten,
61        default,
62        skip_serializing_if = "::std::collections::HashMap::is_empty"
63    )]
64    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
65}