Struct matrix_sdk_base::ruma::api::client::backup::EncryptedSessionDataInit
source · pub struct EncryptedSessionDataInit {
pub ephemeral: Base64,
pub ciphertext: Base64,
pub mac: Base64,
}
Available on crate feature
api
and (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) -> EncryptedSessionData
fn from(init: EncryptedSessionDataInit) -> EncryptedSessionData
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more