[−][src]Struct ruma_events::room::power_levels::PowerLevelsEventContent
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]
fn clone(&self) -> PowerLevelsEventContent
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PowerLevelsEventContent
[src]
impl FromRaw for PowerLevelsEventContent
[src]
type Raw = PowerLevelsEventContent
The raw type.
fn from_raw(raw: PowerLevelsEventContent) -> Self
[src]
impl PartialEq<PowerLevelsEventContent> for PowerLevelsEventContent
[src]
fn eq(&self, other: &PowerLevelsEventContent) -> bool
[src]
fn ne(&self, other: &PowerLevelsEventContent) -> bool
[src]
impl Serialize for PowerLevelsEventContent
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for PowerLevelsEventContent
[src]
Auto Trait Implementations
impl RefUnwindSafe for PowerLevelsEventContent
impl Send for PowerLevelsEventContent
impl Sync for PowerLevelsEventContent
impl Unpin for PowerLevelsEventContent
impl UnwindSafe for PowerLevelsEventContent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,