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