#[non_exhaustive]pub enum RoomPowerLevelsIntField {
UsersDefault,
EventsDefault,
StateDefault,
Ban,
Redact,
Kick,
Invite,
}
Available on crate feature
state-res
only.Expand description
Fields in the content
of an m.room.power_levels
event with an integer value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UsersDefault
users_default
EventsDefault
events_default
StateDefault
state_default
Ban
ban
Redact
redact
Kick
kick
Invite
invite
Implementations§
Trait Implementations§
Source§impl AsRef<str> for RoomPowerLevelsIntField
impl AsRef<str> for RoomPowerLevelsIntField
Source§impl Clone for RoomPowerLevelsIntField
impl Clone for RoomPowerLevelsIntField
Source§fn clone(&self) -> RoomPowerLevelsIntField
fn clone(&self) -> RoomPowerLevelsIntField
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RoomPowerLevelsIntField
impl Debug for RoomPowerLevelsIntField
Source§impl Display for RoomPowerLevelsIntField
impl Display for RoomPowerLevelsIntField
Source§impl Ord for RoomPowerLevelsIntField
impl Ord for RoomPowerLevelsIntField
Source§fn cmp(&self, other: &RoomPowerLevelsIntField) -> Ordering
fn cmp(&self, other: &RoomPowerLevelsIntField) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RoomPowerLevelsIntField
impl PartialEq for RoomPowerLevelsIntField
Source§impl PartialOrd for RoomPowerLevelsIntField
impl PartialOrd for RoomPowerLevelsIntField
impl Copy for RoomPowerLevelsIntField
impl Eq for RoomPowerLevelsIntField
Auto Trait Implementations§
impl Freeze for RoomPowerLevelsIntField
impl RefUnwindSafe for RoomPowerLevelsIntField
impl Send for RoomPowerLevelsIntField
impl Sync for RoomPowerLevelsIntField
impl Unpin for RoomPowerLevelsIntField
impl UnwindSafe for RoomPowerLevelsIntField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.