proxmox_api/generated/cluster/acme/
tos.rs

1pub struct TosClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> TosClient<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, "/tos"),
13        }
14    }
15}
16impl<T> TosClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Retrieve ACME TermsOfService URL from CA. Deprecated, please use /cluster/acme/meta."]
21    pub fn get(&self, params: GetParams) -> Result<Option<String>, 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 GetParams {
28    #[serde(skip_serializing_if = "Option::is_none", default)]
29    #[doc = "URL of ACME CA directory endpoint."]
30    pub directory: Option<String>,
31    #[serde(
32        flatten,
33        default,
34        skip_serializing_if = "::std::collections::HashMap::is_empty"
35    )]
36    pub additional_properties: ::std::collections::HashMap<String, ::serde_json::Value>,
37}