proxmox_api/generated/nodes/node/sdn/
fabrics.rs1pub mod fabric;
2#[derive(Debug, Clone)]
3pub struct FabricsClient<T> {
4 client: T,
5 path: String,
6}
7impl<T> FabricsClient<T>
8where
9 T: crate::client::Client,
10{
11 pub fn new(client: T, parent_path: &str) -> Self {
12 Self {
13 client,
14 path: format!("{}{}", parent_path, "/fabrics"),
15 }
16 }
17}
18impl<T> FabricsClient<T>
19where
20 T: crate::client::Client,
21{
22 pub fn fabric(&self, fabric: &str) -> fabric::FabricClient<T> {
23 fabric::FabricClient::<T>::new(self.client.clone(), &self.path, fabric)
24 }
25}