ruma_events::room::member

Type Alias RoomMemberEvent

Source
pub type RoomMemberEvent = StateEvent<RoomMemberEventContent>;
Expand description

An m.room.member event.

Aliased Type§

enum RoomMemberEvent {
    Original(OriginalStateEvent<RoomMemberEventContent>),
    Redacted(RedactedStateEvent<RedactedRoomMemberEventContent>),
}

Variants§

§

Original(OriginalStateEvent<RoomMemberEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedStateEvent<RedactedRoomMemberEventContent>)

Redacted form of the event with minimal fields.

Implementations§

Source§

impl RoomMemberEvent

Source

pub fn membership(&self) -> &MembershipState

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