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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)