ruma_events::room::power_levels

Type Alias SyncRoomPowerLevelsEvent

Source
pub type SyncRoomPowerLevelsEvent = SyncStateEvent<RoomPowerLevelsEventContent>;
Expand description

An m.room.power_levels event from a sync_events response.

Aliased Type§

enum SyncRoomPowerLevelsEvent {
    Original(OriginalSyncStateEvent<RoomPowerLevelsEventContent>),
    Redacted(RedactedSyncStateEvent<RedactedRoomPowerLevelsEventContent>),
}

Variants§

§

Original(OriginalSyncStateEvent<RoomPowerLevelsEventContent>)

Original, unredacted form of the event.

§

Redacted(RedactedSyncStateEvent<RedactedRoomPowerLevelsEventContent>)

Redacted form of the event with minimal fields.

Implementations§

Source§

impl SyncRoomPowerLevelsEvent

Source

pub fn power_levels(&self) -> RoomPowerLevels

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