proxmox_api/generated/nodes/node/services/service/
reload.rs

1pub struct ReloadClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> ReloadClient<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, "/reload"),
13        }
14    }
15}
16impl<T> ReloadClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Reload service. Falls back to restart if service cannot be reloaded."]
21    pub fn post(&self) -> Result<String, T::Error> {
22        let path = self.path.to_string();
23        self.client.post(&path, &())
24    }
25}