proxmox_api/generated/cluster/notifications/
endpoints.rs

1pub mod gotify;
2pub mod sendmail;
3pub mod smtp;
4pub struct EndpointsClient<T> {
5    client: T,
6    path: String,
7}
8impl<T> EndpointsClient<T>
9where
10    T: crate::client::Client,
11{
12    pub fn new(client: T, parent_path: &str) -> Self {
13        Self {
14            client,
15            path: format!("{}{}", parent_path, "/endpoints"),
16        }
17    }
18}
19impl<T> EndpointsClient<T>
20where
21    T: crate::client::Client,
22{
23    #[doc = "Index for all available endpoint types."]
24    pub fn get(&self) -> Result<Vec<GetOutputItems>, T::Error> {
25        let path = self.path.to_string();
26        self.client.get(&path, &())
27    }
28}
29#[derive(Clone, Debug, :: serde :: Serialize, :: serde :: Deserialize, Default)]
30pub struct GetOutputItems {
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}
38impl<T> EndpointsClient<T>
39where
40    T: crate::client::Client,
41{
42    pub fn sendmail(&self) -> sendmail::SendmailClient<T> {
43        sendmail::SendmailClient::<T>::new(self.client.clone(), &self.path)
44    }
45}
46impl<T> EndpointsClient<T>
47where
48    T: crate::client::Client,
49{
50    pub fn gotify(&self) -> gotify::GotifyClient<T> {
51        gotify::GotifyClient::<T>::new(self.client.clone(), &self.path)
52    }
53}
54impl<T> EndpointsClient<T>
55where
56    T: crate::client::Client,
57{
58    pub fn smtp(&self) -> smtp::SmtpClient<T> {
59        smtp::SmtpClient::<T>::new(self.client.clone(), &self.path)
60    }
61}