pub struct DecryptedRoomEvent {
pub event: Raw<AnyTimelineEvent>,
pub encryption_info: Arc<EncryptionInfo>,
pub unsigned_encryption_info: Option<BTreeMap<UnsignedEventLocation, UnsignedDecryptionResult>>,
}
Expand description
A successfully-decrypted encrypted event.
Fields§
§event: Raw<AnyTimelineEvent>
The decrypted event.
Note: it’s not an error that this contains an [AnyTimelineEvent
]
(as opposed to an [AnySyncTimelineEvent
]): an
encrypted payload always contains a room id, by the spec.
encryption_info: Arc<EncryptionInfo>
The encryption info about the event.
unsigned_encryption_info: Option<BTreeMap<UnsignedEventLocation, UnsignedDecryptionResult>>
The encryption info about the events bundled in the unsigned
object.
Will be None
if no bundled event was encrypted.
Trait Implementations§
Source§impl Clone for DecryptedRoomEvent
impl Clone for DecryptedRoomEvent
Source§fn clone(&self) -> DecryptedRoomEvent
fn clone(&self) -> DecryptedRoomEvent
Returns a duplicate 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 DecryptedRoomEvent
impl Debug for DecryptedRoomEvent
Source§impl<'de> Deserialize<'de> for DecryptedRoomEvent
impl<'de> Deserialize<'de> for DecryptedRoomEvent
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 DecryptedRoomEvent
impl RefUnwindSafe for DecryptedRoomEvent
impl Send for DecryptedRoomEvent
impl Sync for DecryptedRoomEvent
impl Unpin for DecryptedRoomEvent
impl UnwindSafe for DecryptedRoomEvent
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<>