Add Serialize/Deserialize impls for matrix_sdk::Session.
parent
d039a39d84
commit
f349811020
|
@ -15,11 +15,13 @@
|
||||||
|
|
||||||
//! User sessions.
|
//! User sessions.
|
||||||
|
|
||||||
|
use serde::{Serialize, Deserialize};
|
||||||
|
|
||||||
use matrix_sdk_common::identifiers::{DeviceId, UserId};
|
use matrix_sdk_common::identifiers::{DeviceId, UserId};
|
||||||
|
|
||||||
/// A user session, containing an access token and information about the
|
/// A user session, containing an access token and information about the
|
||||||
/// associated user account.
|
/// associated user account.
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
|
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Session {
|
pub struct Session {
|
||||||
/// The access token used for this session.
|
/// The access token used for this session.
|
||||||
pub access_token: String,
|
pub access_token: String,
|
||||||
|
|
Loading…
Reference in New Issue