Struct ruma_client_api::r0::backup::RoomKeyBackup [−][src]
pub struct RoomKeyBackup { pub sessions: BTreeMap<String, KeyBackupData>, }
This is supported on crate feature
unstable-pre-spec
only.Expand description
A wrapper around a mapping of session IDs to key data.
Fields
sessions: BTreeMap<String, KeyBackupData>
A map of session IDs to key data.
Implementations
Creates a new RoomKeyBackup
with the given sessions.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomKeyBackup
impl Send for RoomKeyBackup
impl Sync for RoomKeyBackup
impl Unpin for RoomKeyBackup
impl UnwindSafe for RoomKeyBackup
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more