ruma_events::room::power_levels

Type Alias RoomPowerLevelsEvent

Source
pub type RoomPowerLevelsEvent = StateEvent<RoomPowerLevelsEventContent>;
Expand description

An m.room.power_levels event.

Aliased Type§

enum RoomPowerLevelsEvent {
    Original(OriginalStateEvent<RoomPowerLevelsEventContent>),
    Redacted(RedactedStateEvent<RedactedRoomPowerLevelsEventContent>),
}

Variants§

§

Original(OriginalStateEvent<RoomPowerLevelsEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedStateEvent<RedactedRoomPowerLevelsEventContent>)

Redacted form of the event with minimal fields.

Implementations§

Source§

impl RoomPowerLevelsEvent

Source

pub fn power_levels(&self) -> RoomPowerLevels

Obtain the effective power levels, regardless of whether this event is redacted.