[][src]Struct ruma_events::room::power_levels::PowerLevelsEventContent

pub struct PowerLevelsEventContent {
    pub ban: Int,
    pub events: HashMap<EventType, Int>,
    pub events_default: Int,
    pub invite: Int,
    pub kick: Int,
    pub redact: Int,
    pub state_default: Int,
    pub users: HashMap<UserId, Int>,
    pub users_default: Int,
    pub notifications: NotificationPowerLevels,
}

The payload for PowerLevelsEvent.

Fields

ban: Int

The level required to ban a user.

events: HashMap<EventType, Int>

The level required to send specific event types.

This is a mapping from event type to power level required.

events_default: Int

The default level required to send message events.

invite: Int

The level required to invite a user.

kick: Int

The level required to kick a user.

redact: Int

The level required to redact an event.

state_default: Int

The default level required to send state events.

users: HashMap<UserId, Int>

The power levels for specific users.

This is a mapping from user_id to power level for that user.

users_default: Int

The default power level for every user in the room.

notifications: NotificationPowerLevels

The power level requirements for specific notification types.

This is a mapping from key to power level for that notifications key.

Trait Implementations

impl Clone for PowerLevelsEventContent[src]

impl Debug for PowerLevelsEventContent[src]

impl FromRaw for PowerLevelsEventContent[src]

type Raw = PowerLevelsEventContent

The raw type.

impl PartialEq<PowerLevelsEventContent> for PowerLevelsEventContent[src]

impl Serialize for PowerLevelsEventContent[src]

impl StructuralPartialEq for PowerLevelsEventContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,