proxmox_api/generated/cluster/acme/
directories.rs

1pub struct DirectoriesClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> DirectoriesClient<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, "/directories"),
13        }
14    }
15}
16impl<T> DirectoriesClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Get named known ACME directory endpoints."]
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(name: String, url: String) -> Self {
28        Self { name, url }
29    }
30}
31#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize)]
32pub struct GetOutputItems {
33    pub name: String,
34    #[doc = "URL of ACME CA directory endpoint."]
35    pub url: String,
36}