From f349811020bc3e7bd1fa35e124da3761c55c1d7b Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Mon, 12 Oct 2020 14:54:17 +0200 Subject: [PATCH] Add Serialize/Deserialize impls for matrix_sdk::Session. --- matrix_sdk_base/src/session.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix_sdk_base/src/session.rs b/matrix_sdk_base/src/session.rs index b240b5d0..581f7842 100644 --- a/matrix_sdk_base/src/session.rs +++ b/matrix_sdk_base/src/session.rs @@ -15,11 +15,13 @@ //! User sessions. +use serde::{Serialize, Deserialize}; + use matrix_sdk_common::identifiers::{DeviceId, UserId}; /// A user session, containing an access token and information about the /// associated user account. -#[derive(Clone, Debug, Eq, Hash, PartialEq)] +#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)] pub struct Session { /// The access token used for this session. pub access_token: String,