Type Alias ruma_events::room::member::SyncRoomMemberEvent
source · pub type SyncRoomMemberEvent = SyncStateEvent<RoomMemberEventContent>;
Expand description
An m.room.member
event from a sync_events
response.
Aliased Type§
enum SyncRoomMemberEvent {
Original(OriginalSyncStateEvent<RoomMemberEventContent>),
Redacted(RedactedSyncStateEvent<RedactedRoomMemberEventContent>),
}
Variants§
Original(OriginalSyncStateEvent<RoomMemberEventContent>)
Original, unredacted form of the event.
Redacted(RedactedSyncStateEvent<RedactedRoomMemberEventContent>)
Redacted form of the event with minimal fields.
Implementations§
source§impl SyncRoomMemberEvent
impl SyncRoomMemberEvent
sourcepub fn membership(&self) -> &MembershipState
pub fn membership(&self) -> &MembershipState
Obtain the membership state, regardless of whether this event is redacted.