pub type StrippedRoomPowerLevelsEvent = StrippedStateEvent<PossiblyRedactedRoomPowerLevelsEventContent>;Expand description
An m.room.power_levels event from an invited room preview.
Aliased Type§
pub struct StrippedRoomPowerLevelsEvent {
pub content: RoomPowerLevelsEventContent,
pub sender: OwnedUserId,
pub state_key: EmptyStateKey,
pub origin_server_ts: Option<MilliSecondsSinceUnixEpoch>,
pub unsigned: Option<Raw<StateUnsigned<RoomPowerLevelsEventContent>>>,
}Fields§
§content: RoomPowerLevelsEventContentData specific to the event type.
sender: OwnedUserIdThe fully-qualified ID of the user who sent this event.
state_key: EmptyStateKeyA unique key which defines the overwriting semantics for this piece of room state.
This must be a string type, and is often an empty string.
A state event is keyed by its (type, state_key) tuple. Sending another state event with
the same tuple replaces the previous one.
origin_server_ts: Option<MilliSecondsSinceUnixEpoch>Timestamp on the originating homeserver when this event was sent.
This field is usually stripped, but some events might include it.
unsigned: Option<Raw<StateUnsigned<RoomPowerLevelsEventContent>>>Additional key-value pairs not signed by the homeserver.
Implementations§
Source§impl StrippedRoomPowerLevelsEvent
impl StrippedRoomPowerLevelsEvent
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 from this event.