pub type OriginalSyncRoomTopicEvent = OriginalSyncStateEvent<RoomTopicEventContent>;
Expand description
An m.room.topic
event from a sync_events
response.
Aliased Type§
struct OriginalSyncRoomTopicEvent {
pub content: RoomTopicEventContent,
pub event_id: OwnedEventId,
pub sender: OwnedUserId,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub state_key: EmptyStateKey,
pub unsigned: StateUnsigned<PossiblyRedactedRoomTopicEventContent>,
}
Fields§
§content: RoomTopicEventContent
Data specific to the event type.
event_id: OwnedEventId
The globally unique event identifier for the user who sent the event.
sender: OwnedUserId
The fully-qualified ID of the user who sent this event.
origin_server_ts: MilliSecondsSinceUnixEpoch
Timestamp in milliseconds on originating homeserver when this event was sent.
state_key: EmptyStateKey
A unique key which defines the overwriting semantics for this piece of room state.
This is often an empty string, but some events send a UserId
to show which user the event
affects.
unsigned: StateUnsigned<PossiblyRedactedRoomTopicEventContent>
Additional key-value pairs not signed by the homeserver.
Implementations
Source§impl<C: StaticStateEventContent> OriginalSyncStateEvent<C>
impl<C: StaticStateEventContent> OriginalSyncStateEvent<C>
Sourcepub fn into_full_event(self, room_id: OwnedRoomId) -> OriginalStateEvent<C>
pub fn into_full_event(self, room_id: OwnedRoomId) -> OriginalStateEvent<C>
Convert this sync event into a full event, one with a room_id field.
Trait Implementations
Source§impl<C: Clone + StaticStateEventContent> Clone for OriginalSyncStateEvent<C>
impl<C: Clone + StaticStateEventContent> Clone for OriginalSyncStateEvent<C>
Source§fn clone(&self) -> OriginalSyncStateEvent<C>
fn clone(&self) -> OriginalSyncStateEvent<C>
Returns a copy 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<C: Debug + StaticStateEventContent> Debug for OriginalSyncStateEvent<C>
impl<C: Debug + StaticStateEventContent> Debug for OriginalSyncStateEvent<C>
Source§impl<'de, C> Deserialize<'de> for OriginalSyncStateEvent<C>where
C: EventContentFromType + StaticStateEventContent,
impl<'de, C> Deserialize<'de> for OriginalSyncStateEvent<C>where
C: EventContentFromType + StaticStateEventContent,
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<C: StaticStateEventContent> From<OriginalStateEvent<C>> for OriginalSyncStateEvent<C>
impl<C: StaticStateEventContent> From<OriginalStateEvent<C>> for OriginalSyncStateEvent<C>
Source§fn from(event: OriginalStateEvent<C>) -> Self
fn from(event: OriginalStateEvent<C>) -> Self
Converts to this type from the input type.