From 640c5602d5821d62b1796a97480591dcac541d38 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 15 Aug 2020 02:19:26 +0200 Subject: [PATCH] Make accidentally private fields public --- ruma-client-api/src/r0/backup.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ruma-client-api/src/r0/backup.rs b/ruma-client-api/src/r0/backup.rs index 7d84a2a7..516a1e3d 100644 --- a/ruma-client-api/src/r0/backup.rs +++ b/ruma-client-api/src/r0/backup.rs @@ -39,22 +39,22 @@ pub enum BackupAlgorithm { #[derive(Clone, Debug, Serialize, Deserialize)] pub struct KeyData { /// The index of the first message in the session that the key can decrypt. - first_message_index: UInt, + pub first_message_index: UInt, /// The number of times this key has been forwarded via key-sharing between devices. - forwarded_count: UInt, + pub forwarded_count: UInt, /// Whether the device backing up the key verified the device that the key is from. - is_verified: bool, + pub is_verified: bool, /// Data about the session. - session_data: SessionData, + pub session_data: SessionData, } /// The algorithm used for storing backups. #[derive(Clone, Debug, Serialize, Deserialize)] pub struct SessionData { /// Unpadded base64-encoded public half of the ephemeral key. - ephemeral: String, + pub ephemeral: String, /// Ciphertext, encrypted using AES-CBC-256 with PKCS#7 padding, encoded in base64. - ciphertext: String, + pub ciphertext: String, /// First 8 bytes of MAC key, encoded in base64. - mac: String, + pub mac: String, }