Struct ruma_client_api::backup::SessionData
source · [−]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: 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
sourceimpl Clone for SessionData
impl Clone for SessionData
sourcefn clone(&self) -> SessionData
fn clone(&self) -> SessionData
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SessionData
impl Debug for SessionData
sourceimpl<'de> Deserialize<'de> for SessionData
impl<'de> Deserialize<'de> for SessionData
sourcefn 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
sourceimpl From<SessionDataInit> for SessionData
impl From<SessionDataInit> for SessionData
sourcefn from(init: SessionDataInit) -> Self
fn from(init: SessionDataInit) -> Self
Converts to this type from the input type.
sourceimpl Serialize for SessionData
impl Serialize for SessionData
Auto Trait Implementations
impl RefUnwindSafe for SessionData
impl Send for SessionData
impl Sync for SessionData
impl Unpin for SessionData
impl UnwindSafe for SessionData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more