client-api: Be consistent about Raw usage for backup key routes

This commit is contained in:
Jonas Platte 2022-01-27 15:19:27 +01:00
parent 37095f8855
commit 16e18bdebf
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -26,7 +26,7 @@ ruma_api! {
pub version: &'a str, pub version: &'a str,
/// A map from room IDs to session IDs to key data. /// A map from room IDs to session IDs to key data.
pub rooms: BTreeMap<Box<RoomId>, RoomKeyBackup>, pub rooms: BTreeMap<Box<RoomId>, Raw<RoomKeyBackup>>,
} }
response: { response: {
@ -45,7 +45,7 @@ ruma_api! {
impl<'a> Request<'a> { impl<'a> Request<'a> {
/// Creates a new `Request` with the given version and room key backups. /// Creates a new `Request` with the given version and room key backups.
pub fn new(version: &'a str, rooms: BTreeMap<Box<RoomId>, RoomKeyBackup>) -> Self { pub fn new(version: &'a str, rooms: BTreeMap<Box<RoomId>, Raw<RoomKeyBackup>>) -> Self {
Self { version, rooms } Self { version, rooms }
} }
} }