pub enum RoomIdOrAllRooms {
RoomId(OwnedRoomId),
AllRooms,
}Available on crate feature
api and crate feature unstable-msc1763 and (crate features client-api-c or client-api-s) and (crate features client or server) only.Expand description
Represents one or all rooms of a homeserver.
Variants§
Implementations§
Source§impl RoomIdOrAllRooms
impl RoomIdOrAllRooms
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Get the string representation of RoomIdOrAllRooms.
Returns the string representation of the room ID for the RoomIdOrAllRooms::RoomId
variant, or “*” for the RoomIdOrAllRooms::AllRooms variant.
Trait Implementations§
Source§impl AsRef<str> for RoomIdOrAllRooms
impl AsRef<str> for RoomIdOrAllRooms
Source§impl Clone for RoomIdOrAllRooms
impl Clone for RoomIdOrAllRooms
Source§fn clone(&self) -> RoomIdOrAllRooms
fn clone(&self) -> RoomIdOrAllRooms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoomIdOrAllRooms
impl Debug for RoomIdOrAllRooms
Source§impl<'de> Deserialize<'de> for RoomIdOrAllRooms
impl<'de> Deserialize<'de> for RoomIdOrAllRooms
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RoomIdOrAllRooms, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RoomIdOrAllRooms, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RoomIdOrAllRooms
impl Display for RoomIdOrAllRooms
impl Eq for RoomIdOrAllRooms
Source§impl From<OwnedRoomId> for RoomIdOrAllRooms
impl From<OwnedRoomId> for RoomIdOrAllRooms
Source§fn from(r: OwnedRoomId) -> RoomIdOrAllRooms
fn from(r: OwnedRoomId) -> RoomIdOrAllRooms
Converts to this type from the input type.
Source§impl Ord for RoomIdOrAllRooms
impl Ord for RoomIdOrAllRooms
Source§fn cmp(&self, other: &RoomIdOrAllRooms) -> Ordering
fn cmp(&self, other: &RoomIdOrAllRooms) -> Ordering
1.21.0 (const: unstable) · 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 RoomIdOrAllRooms
impl PartialEq for RoomIdOrAllRooms
Source§impl PartialOrd for RoomIdOrAllRooms
impl PartialOrd for RoomIdOrAllRooms
Source§impl Serialize for RoomIdOrAllRooms
impl Serialize for RoomIdOrAllRooms
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RoomIdOrAllRooms
Auto Trait Implementations§
impl Freeze for RoomIdOrAllRooms
impl RefUnwindSafe for RoomIdOrAllRooms
impl Send for RoomIdOrAllRooms
impl Sync for RoomIdOrAllRooms
impl Unpin for RoomIdOrAllRooms
impl UnsafeUnpin for RoomIdOrAllRooms
impl UnwindSafe for RoomIdOrAllRooms
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
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.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more