#[non_exhaustive]pub enum RoomData {
Full(FullRoomData),
Stripped(StrippedRoomData),
}Available on crate feature
unstable-msc4186 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<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 From<FullRoomData> for RoomData
impl From<FullRoomData> for RoomData
Source§fn from(value: FullRoomData) -> Self
fn from(value: FullRoomData) -> Self
Converts to this type from the input type.
Source§impl From<StrippedRoomData> for RoomData
impl From<StrippedRoomData> for RoomData
Source§fn from(value: StrippedRoomData) -> Self
fn from(value: StrippedRoomData) -> Self
Converts to this type from the input type.
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