Struct ruma_events::room::encrypted::MegolmV1AesSha2Content [−][src]
pub struct MegolmV1AesSha2Content { pub ciphertext: String, pub sender_key: String, pub device_id: DeviceIdBox, pub session_id: String, }
Expand description
The payload for EncryptedEvent
using the m.megolm.v1.aes-sha2 algorithm.
To create an instance of this type, first create a MegolmV1AesSha2ContentInit
and convert it
via MegolmV1AesSha2Content::from
/ .into()
.
Fields
ciphertext: String
The encrypted content of the event.
sender_key: String
The Curve25519 key of the sender.
device_id: DeviceIdBox
The ID of the sending device.
session_id: String
The ID of the session used to encrypt the message.
Trait Implementations
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
Creates a new MegolmV1AesSha2Content
from the given init struct.
Auto Trait Implementations
impl RefUnwindSafe for MegolmV1AesSha2Content
impl Send for MegolmV1AesSha2Content
impl Sync for MegolmV1AesSha2Content
impl Unpin for MegolmV1AesSha2Content
impl UnwindSafe for MegolmV1AesSha2Content
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more