pub struct MatrixEvent {
pub event_id: Option<String>,
pub event_type: Option<String>,
pub room_id: Option<String>,
pub sender: Option<String>,
pub origin_server_ts: Option<i64>,
pub content: Option<MatrixMessageContent>,
}Expand description
Matrix room event.
Fields§
§event_id: Option<String>Event ID.
event_type: Option<String>Event type (e.g., “m.room.message”).
room_id: Option<String>Room ID.
sender: Option<String>Sender user ID.
origin_server_ts: Option<i64>Origin server timestamp (milliseconds).
content: Option<MatrixMessageContent>Event content.
Trait Implementations§
Source§impl Clone for MatrixEvent
impl Clone for MatrixEvent
Source§fn clone(&self) -> MatrixEvent
fn clone(&self) -> MatrixEvent
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 MatrixEvent
impl Debug for MatrixEvent
Source§impl<'de> Deserialize<'de> for MatrixEvent
impl<'de> Deserialize<'de> for MatrixEvent
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 MatrixEvent
impl RefUnwindSafe for MatrixEvent
impl Send for MatrixEvent
impl Sync for MatrixEvent
impl Unpin for MatrixEvent
impl UnwindSafe for MatrixEvent
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