pub struct SessionDataInit {
pub ephemeral: Base64,
pub ciphertext: Base64,
pub mac: Base64,
}Available on crate features
client or server only.Expand description
The algorithm used for storing backups.
This struct will not be updated even if additional fields are added to SessionData in a
new (non-breaking) release of the Matrix specification.
Fields§
§ephemeral: Base64Unpadded base64-encoded public half of the ephemeral key.
ciphertext: Base64Ciphertext, encrypted using AES-CBC-256 with PKCS#7 padding, encoded in base64.
mac: Base64First 8 bytes of MAC key, encoded in base64.
Trait Implementations§
Source§impl Debug for SessionDataInit
impl Debug for SessionDataInit
Source§impl From<SessionDataInit> for SessionData
impl From<SessionDataInit> for SessionData
Source§fn from(init: SessionDataInit) -> Self
fn from(init: SessionDataInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionDataInit
impl RefUnwindSafe for SessionDataInit
impl Send for SessionDataInit
impl Sync for SessionDataInit
impl Unpin for SessionDataInit
impl UnwindSafe for SessionDataInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more