pub struct CustomRoomEvent {
    pub content: Value,
    pub event_id: EventId,
    pub event_type: EventType,
    pub origin_server_ts: u64,
    pub room_id: RoomId,
    pub unsigned: Option<Value>,
    pub sender: UserId,
}
Expand description

A custom room event not covered by the Matrix specification.

Fields

content: Value

The event’s content.

event_id: EventId

The unique identifier for the event.

event_type: EventType

The type of the event.

origin_server_ts: u64

Timestamp in milliseconds on originating homeserver when this event was sent.

room_id: RoomId

The unique identifier for the room associated with this event.

unsigned: Option<Value>

Additional key-value pairs not signed by the homeserver.

sender: UserId

The unique identifier for the user who sent this event.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
The event-type-specific payload this event carries.
The event’s content.
The type of the event.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
The unique identifier for the event.
Timestamp in milliseconds on originating homeserver when this event was sent.
The unique identifier for the room associated with this event.
Additional key-value pairs not signed by the homeserver.
The unique identifier for the user who sent this event.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.