guacamole-client 0.5.1

Rust client library for the Guacamole REST API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde_json::Value;

use crate::client::GuacamoleClient;
use crate::error::Result;

impl GuacamoleClient {
    /// Lists all server patches applied to the Guacamole instance.
    ///
    /// This is a public Guacamole endpoint that does not require authentication.
    pub async fn list_patches(&self) -> Result<Value> {
        let url = self.url_unauth("/api/patches");
        let response = self.http.get(&url).send().await?;
        Self::parse_response(response, "patches").await
    }
}