diff --git a/matrix_sdk_crypto/src/identities/user.rs b/matrix_sdk_crypto/src/identities/user.rs index a53c9570..dc87243b 100644 --- a/matrix_sdk_crypto/src/identities/user.rs +++ b/matrix_sdk_crypto/src/identities/user.rs @@ -361,7 +361,7 @@ impl<'a> IntoIterator for &'a SelfSigningPubkey { } /// Enum over the different user identity types we can have. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub enum UserIdentities { /// Our own user identity. Own(OwnUserIdentity), @@ -567,7 +567,7 @@ impl UserIdentity { /// /// This identity can verify other identities as well as devices belonging to /// the identity. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct OwnUserIdentity { user_id: Arc, master_key: MasterPubkey, diff --git a/matrix_sdk_crypto/src/olm/account.rs b/matrix_sdk_crypto/src/olm/account.rs index 6799e55d..cab40879 100644 --- a/matrix_sdk_crypto/src/olm/account.rs +++ b/matrix_sdk_crypto/src/olm/account.rs @@ -100,7 +100,7 @@ pub struct OlmDecryptionInfo { /// A hash of a succesfully decrypted Olm message. /// /// Can be used to check if a message has been replayed to us. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct OlmMessageHash { /// The curve25519 key of the sender that sent us the Olm message. pub sender_key: String,