pub enum AlgorithmInfo {
MegolmV1AesSha2 {
curve25519_key: String,
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String, Global>,
forwarding_curve25519_key_chain: Vec<String, Global>,
},
}
Expand description
The algorithm specific information of a decrypted event.
Variants
MegolmV1AesSha2
Fields
curve25519_key: String
The curve25519 key of the device that created the megolm decryption key originally.
sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String, Global>
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.
The info if the event was encrypted using m.megolm.v1.aes-sha2
Trait Implementations
sourceimpl Clone for AlgorithmInfo
impl Clone for AlgorithmInfo
sourcefn clone(&self) -> AlgorithmInfo
fn clone(&self) -> AlgorithmInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AlgorithmInfo
impl Debug for AlgorithmInfo
sourceimpl<'de> Deserialize<'de> for AlgorithmInfo
impl<'de> Deserialize<'de> for AlgorithmInfo
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<AlgorithmInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
sourceimpl Serialize for AlgorithmInfo
impl Serialize for AlgorithmInfo
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more