Struct matrix_sdk_crypto::types::events::room_key::MegolmV1AesSha2Content
source · pub struct MegolmV1AesSha2Content {
pub room_id: OwnedRoomId,
pub session_id: String,
pub session_key: SessionKey,
/* private fields */
}
Expand description
The m.megolm.v1.aes-sha2
variant of the m.room_key
content.
Fields§
§room_id: OwnedRoomId
The room where the key is used.
session_id: String
The ID of the session that the key is for.
session_key: SessionKey
The key to be exchanged. Can be used to create a InboundGroupSession
that can be used to decrypt room events.
Implementations§
source§impl MegolmV1AesSha2Content
impl MegolmV1AesSha2Content
sourcepub fn new(
room_id: OwnedRoomId,
session_id: String,
session_key: SessionKey,
) -> Self
pub fn new( room_id: OwnedRoomId, session_id: String, session_key: SessionKey, ) -> Self
Create a new m.megolm.v1.aes-sha2
m.room_key
content.
Trait Implementations§
source§impl Debug for MegolmV1AesSha2Content
Available on non-tarpaulin_include
only.
impl Debug for MegolmV1AesSha2Content
Available on non-
tarpaulin_include
only.source§impl<'de> Deserialize<'de> for MegolmV1AesSha2Content
impl<'de> Deserialize<'de> for MegolmV1AesSha2Content
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
Auto Trait Implementations§
impl Freeze for MegolmV1AesSha2Content
impl RefUnwindSafe for MegolmV1AesSha2Content
impl Send for MegolmV1AesSha2Content
impl Sync for MegolmV1AesSha2Content
impl Unpin for MegolmV1AesSha2Content
impl UnwindSafe for MegolmV1AesSha2Content
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