proxmox_api/generated/cluster/config/
apiversion.rs

1pub struct ApiversionClient<T> {
2    client: T,
3    path: String,
4}
5impl<T> ApiversionClient<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, "/apiversion"),
13        }
14    }
15}
16impl<T> ApiversionClient<T>
17where
18    T: crate::client::Client,
19{
20    #[doc = "Return the version of the cluster join API available on this node."]
21    pub fn get(&self) -> Result<u64, T::Error> {
22        let path = self.path.to_string();
23        Ok(self
24            .client
25            .get::<_, crate::types::Integer>(&path, &())?
26            .get())
27    }
28}