From b7bdb4aa52c87b2b48c40fca92db7eb4079548e1 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 1 Jun 2020 01:21:06 +0200 Subject: [PATCH] Update get_capabilites endpoint --- src/r0/capabilities/get_capabilities.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/r0/capabilities/get_capabilities.rs b/src/r0/capabilities/get_capabilities.rs index 43f42ff0..b4f1e97a 100644 --- a/src/r0/capabilities/get_capabilities.rs +++ b/src/r0/capabilities/get_capabilities.rs @@ -1,6 +1,7 @@ -//! [GET /_matrix/client/r0/capabilities](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-capabilities) +//! [GET /_matrix/client/r0/capabilities](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-capabilities) use ruma_api::ruma_api; +use ruma_identifiers::RoomVersionId; use serde::{Deserialize, Serialize}; use serde_json::Value as JsonValue; use std::collections::BTreeMap; @@ -56,17 +57,17 @@ pub struct RoomVersionsCapability { pub default: String, /// A detailed description of the room versions the server supports. - pub available: BTreeMap, + pub available: BTreeMap, } /// The stability of a room version #[derive(Clone, Copy, Debug, Serialize, Deserialize)] pub enum RoomVersionStability { - /// An unstable room version + /// Support for the given version is stable. #[serde(rename = "stable")] Stable, - /// A stable room version + /// Support for the given version is unstable. #[serde(rename = "unstable")] Unstable, }