#[non_exhaustive]pub struct PublicRoomsChunk {
pub canonical_alias: Option<OwnedRoomAliasId>,
pub name: Option<String>,
pub num_joined_members: UInt,
pub room_id: OwnedRoomId,
pub topic: Option<String>,
pub world_readable: bool,
pub guest_can_join: bool,
pub avatar_url: Option<OwnedMxcUri>,
pub join_rule: JoinRuleKind,
pub room_type: Option<RoomType>,
}Expand description
A chunk of a room list response, describing one room.
To create an instance of this type, first create a PublicRoomsChunkInit and convert it via
PublicRoomsChunk::from / .into(). It is also possible to construct this type from or convert
it to a RoomSummary.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.canonical_alias: Option<OwnedRoomAliasId>The canonical alias of the room, if any.
name: Option<String>The name of the room, if any.
num_joined_members: UIntThe number of members joined to the room.
room_id: OwnedRoomIdThe ID of the room.
topic: Option<String>The topic of the room, if any.
world_readable: boolWhether the room may be viewed by guest users without joining.
guest_can_join: boolWhether guest users may join the room and participate in it.
If they can, they will be subject to ordinary power level rules like any other user.
avatar_url: Option<OwnedMxcUri>The URL for the room’s avatar, if one is set.
If you activate the compat-empty-string-null feature, this field being an empty string in
JSON will result in None here during deserialization.
join_rule: JoinRuleKindThe join rule of the room.
room_type: Option<RoomType>The type of room from m.room.create, if any.
Trait Implementations§
Source§impl Clone for PublicRoomsChunk
impl Clone for PublicRoomsChunk
Source§fn clone(&self) -> PublicRoomsChunk
fn clone(&self) -> PublicRoomsChunk
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PublicRoomsChunk
impl Debug for PublicRoomsChunk
Source§impl<'de> Deserialize<'de> for PublicRoomsChunk
impl<'de> Deserialize<'de> for PublicRoomsChunk
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicRoomsChunk, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PublicRoomsChunk, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<PublicRoomsChunk> for RoomSummary
impl From<PublicRoomsChunk> for RoomSummary
Source§fn from(value: PublicRoomsChunk) -> RoomSummary
fn from(value: PublicRoomsChunk) -> RoomSummary
Source§impl From<PublicRoomsChunkInit> for PublicRoomsChunk
impl From<PublicRoomsChunkInit> for PublicRoomsChunk
Source§fn from(init: PublicRoomsChunkInit) -> PublicRoomsChunk
fn from(init: PublicRoomsChunkInit) -> PublicRoomsChunk
Source§impl From<RoomSummary> for PublicRoomsChunk
impl From<RoomSummary> for PublicRoomsChunk
Source§fn from(value: RoomSummary) -> PublicRoomsChunk
fn from(value: RoomSummary) -> PublicRoomsChunk
Source§impl Serialize for PublicRoomsChunk
impl Serialize for PublicRoomsChunk
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,
Auto Trait Implementations§
impl Freeze for PublicRoomsChunk
impl RefUnwindSafe for PublicRoomsChunk
impl Send for PublicRoomsChunk
impl Sync for PublicRoomsChunk
impl Unpin for PublicRoomsChunk
impl UnwindSafe for PublicRoomsChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more