pub struct DecryptedRoomEvent {
pub event: Raw<AnyMessageLikeEvent>,
pub encryption_info: EncryptionInfo,
pub unsigned_encryption_info: Option<BTreeMap<UnsignedEventLocation, UnsignedDecryptionResult>>,
}
Expand description
A successfully-decrypted encrypted event.
Fields§
§event: Raw<AnyMessageLikeEvent>
The decrypted event.
encryption_info: 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 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 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
source§impl From<DecryptedRoomEvent> for SyncTimelineEvent
impl From<DecryptedRoomEvent> for SyncTimelineEvent
source§fn from(decrypted: DecryptedRoomEvent) -> Self
fn from(decrypted: DecryptedRoomEvent) -> Self
Converts to this type from the input type.
source§impl From<DecryptedRoomEvent> for TimelineEvent
impl From<DecryptedRoomEvent> for TimelineEvent
source§fn from(decrypted: DecryptedRoomEvent) -> Self
fn from(decrypted: DecryptedRoomEvent) -> Self
Converts to this type from the input type.
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,
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
)§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<>