Enum matrix_sdk_base::deserialized_responses::AlgorithmInfo [−][src]
pub enum AlgorithmInfo {
MegolmV1AesSha2 {
curve25519_key: String,
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
forwarding_curve25519_key_chain: Vec<String, Global>,
},
}
Expand description
The algorithm specific information of a decrypted event.
Variants
The info if the event was encrypted using m.megolm.v1.aes-sha2
Fields of MegolmV1AesSha2
curve25519_key: String
The curve25519 key of the device that created the megolm decryption key originally.
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>
The signing keys that have created the megolm key that was used to decrypt this session. This map will usually contain a single ed25519 key.
forwarding_curve25519_key_chain: Vec<String, Global>
Chain of curve25519 keys through which this session was forwarded, via m.forwarded_room_key events.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AlgorithmInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AlgorithmInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AlgorithmInfo
impl Send for AlgorithmInfo
impl Sync for AlgorithmInfo
impl Unpin for AlgorithmInfo
impl UnwindSafe for AlgorithmInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more