ruma_events::room::member

Type Alias 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

Source

pub fn membership(&self) -> &MembershipState

Obtain the membership state, regardless of whether this event is redacted.