#[non_exhaustive]pub struct Room {
pub bump_stamp: Option<UInt>,
pub membership: Option<MembershipState>,
pub lists: Vec<String>,
pub data: RoomData,
}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
An updated room (see super::Response::rooms).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bump_stamp: Option<UInt>An integer that can be used to sort rooms based on their last activity.
Greater means more recent. The value is opaque and may decrease.
membership: Option<MembershipState>The current membership of the user in the room.
lists: Vec<String>The keys of the lists that match this room.
data: RoomDataThe data of the room, depending on the membership of the user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Room
impl<'de> Deserialize<'de> for Room
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Room, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Room, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Room> for Room
The conversion is lossy: membership, lists, expanded_timeline, deleted state
entries and the removal of the room name are dropped.
impl From<Room> for Room
The conversion is lossy: membership, lists, expanded_timeline, deleted state
entries and the removal of the room name are dropped.
Source§impl Serialize for Room
impl Serialize for Room
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 Room
impl Freeze for Room
impl Move for Room
impl RefUnwindSafe for Room
impl Send for Room
impl Sync for Room
impl Unpin for Room
impl UnsafeUnpin for Room
impl UnwindSafe for Room
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