[−][src]Struct gm_types::events::Event
A Matrix event.
All communication in Matrix is expressed in the form of data objects called events. These are the fundamental building blocks common to the client-server, server-server and application-service APIs.
Fields
content: Content
Event content.
event_type: String
The type of this event.
This SHOULD be namespaced similar to Java package naming conventions, e.g. 'com.example.subdomain.event.type'
room_data: Option<RoomEventData>
If this event is a Room Event, this struct stores Room Event-specific fields.
state_data: Option<StateEventData>
If this event is a State Event, this struct stores Room Event-specific fields.
Trait Implementations
impl Clone for Event
[src]
impl Debug for Event
[src]
impl<'de> Deserialize<'de> for Event
[src]
fn deserialize<D>(d: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Serialize for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,