pub type SyncRoomPowerLevelsEvent = SyncStateEvent<RoomPowerLevelsEventContent>;
Expand description
An m.room.power_levels
event from a sync_events
response.
Aliased Type§
pub 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
impl SyncRoomPowerLevelsEvent
Sourcepub fn power_levels(
&self,
rules: &AuthorizationRules,
creators: Vec<OwnedUserId>,
) -> RoomPowerLevels
pub fn power_levels( &self, rules: &AuthorizationRules, creators: Vec<OwnedUserId>, ) -> RoomPowerLevels
Obtain the effective power levels, regardless of whether this event is redacted.