proxmox-api 0.2.0

Rust bindings for the Proxmox VE HTTP API
Documentation
pub mod test;
#[derive(Debug, Clone)]
pub struct NameClient<T> {
    client: T,
    path: String,
}
impl<T> NameClient<T>
where
    T: crate::client::Client,
{
    pub fn new(client: T, parent_path: &str, name: &str) -> Self {
        Self {
            client,
            path: format!("{}/{}", parent_path, name),
        }
    }
}
impl<T> NameClient<T>
where
    T: crate::client::Client,
{
    pub fn test(&self) -> test::TestClient<T> {
        test::TestClient::<T>::new(self.client.clone(), &self.path)
    }
}