From 254b24fb208323b1cb958823475a961068e5b7be Mon Sep 17 00:00:00 2001 From: Devin R Date: Wed, 15 Jul 2020 15:59:26 -0400 Subject: [PATCH] Add pre-spec fields to r0::keys::get_keys::Response --- ruma-client-api/src/r0/keys/get_keys.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ruma-client-api/src/r0/keys/get_keys.rs b/ruma-client-api/src/r0/keys/get_keys.rs index 8f98c17b..60629ad7 100644 --- a/ruma-client-api/src/r0/keys/get_keys.rs +++ b/ruma-client-api/src/r0/keys/get_keys.rs @@ -45,10 +45,27 @@ ruma_api! { /// If any remote homeservers could not be reached, they are recorded /// here. The names of the properties are the names of the unreachable /// servers. + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub failures: BTreeMap, /// Information on the queried devices. + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub device_keys: BTreeMap, DeviceKeys>>, + + /// Information on the master cross-signing keys of the queried users. + #[cfg(feature = "unstable-pre-spec")] + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] + pub master_keys: BTreeMap, + + /// Information on the self-signing keys of the queried users. + #[cfg(feature = "unstable-pre-spec")] + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] + pub self_signing_keys: BTreeMap, + + /// Information on the user-signing keys of the queried users. + #[cfg(feature = "unstable-pre-spec")] + #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] + pub user_signing_keys: BTreeMap, } error: crate::Error