Type Alias ruma_events::room::member::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.