Struct matrix_sdk_crypto::olm::BackedUpRoomKey
source · pub struct BackedUpRoomKey {
pub algorithm: EventEncryptionAlgorithm,
pub sender_key: Curve25519PublicKey,
pub session_key: ExportedSessionKey,
pub sender_claimed_keys: SigningKeys<DeviceKeyAlgorithm>,
pub forwarding_curve25519_key_chain: Vec<Curve25519PublicKey>,
}
Expand description
A backed up version of an InboundGroupSession
This can be used to backup the InboundGroupSession
to the server.
Fields§
§algorithm: EventEncryptionAlgorithm
The encryption algorithm that the session uses.
sender_key: Curve25519PublicKey
The Curve25519 key of the device which initiated the session originally.
session_key: ExportedSessionKey
The key for the session.
sender_claimed_keys: SigningKeys<DeviceKeyAlgorithm>
The Ed25519 key of the device which initiated the session originally.
forwarding_curve25519_key_chain: Vec<Curve25519PublicKey>
Chain of Curve25519 keys through which this session was forwarded, via m.forwarded_room_key events.
Trait Implementations§
source§impl<'de> Deserialize<'de> for BackedUpRoomKey
impl<'de> Deserialize<'de> for BackedUpRoomKey
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<ExportedRoomKey> for BackedUpRoomKey
impl From<ExportedRoomKey> for BackedUpRoomKey
source§fn from(k: ExportedRoomKey) -> Self
fn from(k: ExportedRoomKey) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BackedUpRoomKey
impl RefUnwindSafe for BackedUpRoomKey
impl Send for BackedUpRoomKey
impl Sync for BackedUpRoomKey
impl Unpin for BackedUpRoomKey
impl UnwindSafe for BackedUpRoomKey
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
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,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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