Type Definition ruma_common::events::room::member::OriginalSyncRoomMemberEvent
source · [−]pub type OriginalSyncRoomMemberEvent = OriginalSyncStateEvent<RoomMemberEventContent>;
Available on crate feature
events
only.Expand description
An m.room.member
event from a sync_events
response.
Implementations
sourceimpl OriginalSyncRoomMemberEvent
impl OriginalSyncRoomMemberEvent
sourcepub fn details(&self) -> MembershipDetails<'_>
pub fn details(&self) -> MembershipDetails<'_>
Obtain the details about this event that are required to calculate a membership change.
This is required when you want to calculate the change a redacted m.room.member
event
made.
sourcepub fn prev_content(&self) -> Option<&RoomMemberEventContent>
pub fn prev_content(&self) -> Option<&RoomMemberEventContent>
Get a reference to the prev_content
in unsigned, if it exists.
Shorthand for event.unsigned.prev_content.as_ref()
sourcepub fn membership_change(&self) -> MembershipChange<'_>
pub fn membership_change(&self) -> MembershipChange<'_>
Helper function for membership change.
Check the specification for details.