pub enum AlgorithmInfo {
MegolmV1AesSha2 {
curve25519_key: String,
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String>,
},
}
Expand description
The algorithm specific information of a decrypted event.
Variants§
MegolmV1AesSha2
The info if the event was encrypted using m.megolm.v1.aes-sha2
Fields
§
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.
Trait Implementations§
Source§impl Clone for AlgorithmInfo
impl Clone for AlgorithmInfo
Source§fn clone(&self) -> AlgorithmInfo
fn clone(&self) -> AlgorithmInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AlgorithmInfo
impl Debug for AlgorithmInfo
Source§impl<'de> Deserialize<'de> for AlgorithmInfo
impl<'de> Deserialize<'de> for AlgorithmInfo
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 AlgorithmInfo
impl RefUnwindSafe for AlgorithmInfo
impl Send for AlgorithmInfo
impl Sync for AlgorithmInfo
impl Unpin for AlgorithmInfo
impl UnwindSafe for AlgorithmInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>