#[non_exhaustive]pub enum DoNotDisturbRoomKey {
AllRooms,
SingleRoom(OwnedRoomId),
}
Expand description
The key for a “Do not Disturb” setting.
This either matches a single room or all rooms.
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.
Trait Implementations§
Source§impl Clone for DoNotDisturbRoomKey
impl Clone for DoNotDisturbRoomKey
Source§fn clone(&self) -> DoNotDisturbRoomKey
fn clone(&self) -> DoNotDisturbRoomKey
Returns a duplicate 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 DoNotDisturbRoomKey
impl Debug for DoNotDisturbRoomKey
Source§impl<'de> Deserialize<'de> for DoNotDisturbRoomKey
impl<'de> Deserialize<'de> for DoNotDisturbRoomKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Extend<DoNotDisturbRoomKey> for DoNotDisturbEventContent
impl Extend<DoNotDisturbRoomKey> for DoNotDisturbEventContent
Source§fn extend<T: IntoIterator<Item = DoNotDisturbRoomKey>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = DoNotDisturbRoomKey>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<DoNotDisturbRoomKey> for DoNotDisturbEventContent
impl FromIterator<DoNotDisturbRoomKey> for DoNotDisturbEventContent
Source§fn from_iter<T: IntoIterator<Item = DoNotDisturbRoomKey>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = DoNotDisturbRoomKey>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Ord for DoNotDisturbRoomKey
impl Ord for DoNotDisturbRoomKey
Source§fn cmp(&self, other: &DoNotDisturbRoomKey) -> Ordering
fn cmp(&self, other: &DoNotDisturbRoomKey) -> 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 DoNotDisturbRoomKey
impl PartialEq for DoNotDisturbRoomKey
Source§impl PartialOrd for DoNotDisturbRoomKey
impl PartialOrd for DoNotDisturbRoomKey
Source§impl Serialize for DoNotDisturbRoomKey
impl Serialize for DoNotDisturbRoomKey
impl Eq for DoNotDisturbRoomKey
impl StructuralPartialEq for DoNotDisturbRoomKey
Auto Trait Implementations§
impl Freeze for DoNotDisturbRoomKey
impl RefUnwindSafe for DoNotDisturbRoomKey
impl Send for DoNotDisturbRoomKey
impl Sync for DoNotDisturbRoomKey
impl Unpin for DoNotDisturbRoomKey
impl UnwindSafe for DoNotDisturbRoomKey
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.