pub struct TimelineEvent {
pub event: Raw<AnyTimelineEvent>,
pub encryption_info: Option<EncryptionInfo>,
pub push_actions: Option<Vec<Action>>,
}
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.
Implementations§
source§impl TimelineEvent
impl TimelineEvent
sourcepub fn new(event: Raw<AnyTimelineEvent>) -> TimelineEvent
pub fn new(event: Raw<AnyTimelineEvent>) -> TimelineEvent
Create a new TimelineEvent
from the given raw event.
This is a convenience constructor for when you don’t need to set
encryption_info
or push_action
, for example inside a test.
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
Available on non-tarpaulin_include
only.
impl Debug for TimelineEvent
Available on non-
tarpaulin_include
only.source§impl From<TimelineEvent> for SyncTimelineEvent
impl From<TimelineEvent> for SyncTimelineEvent
source§fn from(o: TimelineEvent) -> SyncTimelineEvent
fn from(o: TimelineEvent) -> SyncTimelineEvent
Converts to this type from the input type.
Auto Trait Implementations§
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