proxmox_api/generated/cluster/notifications/targets/
name.rs1pub mod test;
2pub struct NameClient<T> {
3 client: T,
4 path: String,
5}
6impl<T> NameClient<T>
7where
8 T: crate::client::Client,
9{
10 pub fn new(client: T, parent_path: &str, name: &str) -> Self {
11 Self {
12 client,
13 path: format!("{}/{}", parent_path, name),
14 }
15 }
16}
17impl<T> NameClient<T>
18where
19 T: crate::client::Client,
20{
21 pub fn test(&self) -> test::TestClient<T> {
22 test::TestClient::<T>::new(self.client.clone(), &self.path)
23 }
24}