use std::collections::HashMap;
use crate::client::GuacamoleClient;
use crate::error::Result;
impl GuacamoleClient {
/// Lists all available languages and their display names.
///
/// This is a public Guacamole endpoint that does not require authentication.
pub async fn list_languages(&self) -> Result<HashMap<String, String>> {
let url = self.url_unauth("/api/languages");
let response = self.http.get(&url).send().await?;
Self::parse_response(response, "languages").await
}
}