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