events: Remove invalid copy-pasted docs
This commit is contained in:
parent
cfc5c6e88f
commit
2f32e9863e
@ -202,61 +202,34 @@ impl SyncRoomPowerLevelsEvent {
|
|||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub struct RoomPowerLevels {
|
pub struct RoomPowerLevels {
|
||||||
/// The level required to ban a user.
|
/// The level required to ban a user.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub ban: Int,
|
pub ban: Int,
|
||||||
|
|
||||||
/// The level required to send specific event types.
|
/// The level required to send specific event types.
|
||||||
///
|
///
|
||||||
/// This is a mapping from event type to power level required.
|
/// This is a mapping from event type to power level required.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub events: BTreeMap<RoomEventType, Int>,
|
pub events: BTreeMap<RoomEventType, Int>,
|
||||||
|
|
||||||
/// The default level required to send message events.
|
/// The default level required to send message events.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub events_default: Int,
|
pub events_default: Int,
|
||||||
|
|
||||||
/// The level required to invite a user.
|
/// The level required to invite a user.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub invite: Int,
|
pub invite: Int,
|
||||||
|
|
||||||
/// The level required to kick a user.
|
/// The level required to kick a user.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub kick: Int,
|
pub kick: Int,
|
||||||
|
|
||||||
/// The level required to redact an event.
|
/// The level required to redact an event.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub redact: Int,
|
pub redact: Int,
|
||||||
|
|
||||||
/// The default level required to send state events.
|
/// The default level required to send state events.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub state_default: Int,
|
pub state_default: Int,
|
||||||
|
|
||||||
/// The power levels for specific users.
|
/// The power levels for specific users.
|
||||||
///
|
///
|
||||||
/// This is a mapping from `user_id` to power level for that user.
|
/// This is a mapping from `user_id` to power level for that user.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub users: BTreeMap<Box<UserId>, Int>,
|
pub users: BTreeMap<Box<UserId>, Int>,
|
||||||
|
|
||||||
/// The default power level for every user in the room.
|
/// The default power level for every user in the room.
|
||||||
///
|
|
||||||
/// If you activate the `compat` feature, deserialization will work for stringified
|
|
||||||
/// integers too.
|
|
||||||
pub users_default: Int,
|
pub users_default: Int,
|
||||||
|
|
||||||
/// The power level requirements for specific notification types.
|
/// The power level requirements for specific notification types.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user