Struct ruma_client_api::backup::EncryptedSessionDataInit
source · pub struct EncryptedSessionDataInit {
pub ephemeral: Base64,
pub ciphertext: Base64,
pub mac: Base64,
}
Available on crate features
client
or server
only.Expand description
The encrypted algorithm-dependent data for backups.
This struct will not be updated even if additional fields are added to EncryptedSessionData
in a new (non-breaking) release of the Matrix specification.
Fields§
§ephemeral: Base64
Unpadded base64-encoded public half of the ephemeral key.
ciphertext: Base64
Ciphertext, encrypted using AES-CBC-256 with PKCS#7 padding, encoded in base64.
mac: Base64
First 8 bytes of MAC key, encoded in base64.
Trait Implementations§
source§impl Debug for EncryptedSessionDataInit
impl Debug for EncryptedSessionDataInit
source§impl From<EncryptedSessionDataInit> for EncryptedSessionData
impl From<EncryptedSessionDataInit> for EncryptedSessionData
source§fn from(init: EncryptedSessionDataInit) -> Self
fn from(init: EncryptedSessionDataInit) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncryptedSessionDataInit
impl RefUnwindSafe for EncryptedSessionDataInit
impl Send for EncryptedSessionDataInit
impl Sync for EncryptedSessionDataInit
impl Unpin for EncryptedSessionDataInit
impl UnwindSafe for EncryptedSessionDataInit
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