#[non_exhaustive]pub enum RoomData {
Full(FullRoomData),
Stripped(StrippedRoomData),
}Available on crate feature
api and crate feature unstable-msc4186 and (crate features client-api-c or client-api-s) and (crate features client or server) only.Expand description
The data of a Room.
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.
Full(FullRoomData)
The data of a room the user is or has been joined to.
Stripped(StrippedRoomData)
The data of a room the user has not been joined to, e.g. an invite or a knock.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RoomData
impl<'de> Deserialize<'de> for RoomData
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RoomData, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RoomData, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FullRoomData> for RoomData
impl From<FullRoomData> for RoomData
Source§fn from(value: FullRoomData) -> RoomData
fn from(value: FullRoomData) -> RoomData
Converts to this type from the input type.
Source§impl From<StrippedRoomData> for RoomData
impl From<StrippedRoomData> for RoomData
Source§fn from(value: StrippedRoomData) -> RoomData
fn from(value: StrippedRoomData) -> RoomData
Converts to this type from the input type.
Source§impl Serialize for RoomData
impl Serialize for RoomData
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
Auto Trait Implementations§
impl Forget for RoomData
impl Freeze for RoomData
impl Move for RoomData
impl RefUnwindSafe for RoomData
impl Send for RoomData
impl Sync for RoomData
impl Unpin for RoomData
impl UnsafeUnpin for RoomData
impl UnwindSafe for RoomData
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