pub struct BasicEvent {
pub event_type: String,
pub content: Value,
}Expand description
The minimal {type, content} shape shared by ephemeral (m.typing,
m.receipt) and account-data (m.tag, m.direct, m.fully_read, …)
events (research doc §1.6/§1.7) — unlike RawEvent, these carry no
event_id, sender, or origin_server_ts on the wire.
Fields§
§event_type: StringThe event’s type.
content: ValueThe event’s content, untyped at this layer (see the module doc).
Trait Implementations§
Source§impl Clone for BasicEvent
impl Clone for BasicEvent
Source§impl Debug for BasicEvent
impl Debug for BasicEvent
Source§impl<'de> Deserialize<'de> for BasicEvent
impl<'de> Deserialize<'de> for BasicEvent
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 PartialEq for BasicEvent
impl PartialEq for BasicEvent
Source§impl Serialize for BasicEvent
impl Serialize for BasicEvent
impl StructuralPartialEq for BasicEvent
Auto Trait Implementations§
impl Freeze for BasicEvent
impl RefUnwindSafe for BasicEvent
impl Send for BasicEvent
impl Sync for BasicEvent
impl Unpin for BasicEvent
impl UnsafeUnpin for BasicEvent
impl UnwindSafe for BasicEvent
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