Struct ruma_client_api::backup::SessionData
source · pub struct SessionData {
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.
To create an instance of this type, first create a SessionDataInit and convert it via
SessionData::from / .into().
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 Clone for SessionData
impl Clone for SessionData
source§fn clone(&self) -> SessionData
fn clone(&self) -> SessionData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SessionData
impl Debug for SessionData
source§impl<'de> Deserialize<'de> for SessionData
impl<'de> Deserialize<'de> for SessionData
source§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
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.