[−][src]Trait ruma_events::RoomEvent
An event within the context of a room.
Required methods
fn event_id(&self) -> &EventId
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
Additional key-value pairs not signed by the homeserver.
Implementors
impl RoomEvent for AnswerEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for CandidatesEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for HangupEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for InviteEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for AliasesEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for AvatarEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for CanonicalAliasEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for CreateEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for EncryptedEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for EncryptionEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for GuestAccessEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for HistoryVisibilityEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for JoinRulesEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for MemberEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for FeedbackEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for MessageEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for NameEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for PinnedEventsEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for PowerLevelsEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for RedactionEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for ServerAclEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for ThirdPartyInviteEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for TombstoneEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for TopicEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for StickerEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for CustomRoomEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.
impl RoomEvent for CustomStateEvent
[src]
fn event_id(&self) -> &EventId
[src]
The unique identifier for the event.
fn origin_server_ts(&self) -> UInt
[src]
Timestamp (milliseconds since the UNIX epoch) on originating homeserver when this event was sent.
fn room_id(&self) -> Option<&RoomId>
[src]
The unique identifier for the room associated with this event.
This can be None
if the event came from a context where there is
no ambiguity which room it belongs to, like a /sync
response for example.
fn sender(&self) -> &UserId
[src]
The unique identifier for the user who sent this event.
fn unsigned(&self) -> &Map<String, Value>
[src]
Additional key-value pairs not signed by the homeserver.