pub struct Event {
pub id: String,
pub sender: ParticipantId,
pub timestamp: DateTime<Utc>,
pub data: EventData,
pub self_state: SelfEventState,
pub advances_sort_timestamp: bool,
pub version: u64,
}
Expand description
A single event in a conversation.
Fields§
§id: String
ID of the event.
sender: ParticipantId
Sender / initiatior of the event.
timestamp: DateTime<Utc>
Time of event.
data: EventData
Event-specific data.
self_state: SelfEventState
User’s state with regards to the event.
advances_sort_timestamp: bool
Flag that indicates whether the event advances the sort timestamp of the conversation.
version: u64
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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