Merge branch 'ser-deser-session' into master
This commit is contained in:
commit
39fc33d37a
1 changed files with 3 additions and 1 deletions
|
@ -15,11 +15,13 @@
|
|||
|
||||
//! User sessions.
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue