pub struct TimelineEvent {
pub event: Raw<AnyTimelineEvent>,
pub encryption_info: Option<EncryptionInfo>,
pub push_actions: Option<Vec<Action>>,
pub unsigned_encryption_info: Option<BTreeMap<UnsignedEventLocation, UnsignedDecryptionResult>>,
}
Fields§
§event: Raw<AnyTimelineEvent>
The actual event.
encryption_info: Option<EncryptionInfo>
The encryption info about the event. Will be None
if the event was not
encrypted.
push_actions: Option<Vec<Action>>
The push actions associated with this event, if we had sufficient context to compute them.
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.
Implementations§
Trait Implementations§
source§impl Clone for TimelineEvent
impl Clone for TimelineEvent
source§fn clone(&self) -> TimelineEvent
fn clone(&self) -> TimelineEvent
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 TimelineEvent
impl Debug for TimelineEvent
source§impl From<TimelineEvent> for SyncTimelineEvent
impl From<TimelineEvent> for SyncTimelineEvent
source§fn from(o: TimelineEvent) -> Self
fn from(o: TimelineEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimelineEvent
impl RefUnwindSafe for TimelineEvent
impl Send for TimelineEvent
impl Sync for TimelineEvent
impl Unpin for TimelineEvent
impl UnwindSafe for TimelineEvent
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
)