[]Struct matrix_sdk_common::directory::PublicRoomsChunk

#[non_exhaustive]pub struct PublicRoomsChunk {
    pub aliases: Vec<RoomAliasId, Global>,
    pub canonical_alias: Option<RoomAliasId>,
    pub name: Option<String>,
    pub num_joined_members: UInt,
    pub room_id: RoomId,
    pub topic: Option<String>,
    pub world_readable: bool,
    pub guest_can_join: bool,
    pub avatar_url: Option<String>,
}

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().

Fields (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.
aliases: Vec<RoomAliasId, Global>

Aliases of the room.

canonical_alias: Option<RoomAliasId>

The canonical alias of the room, if any.

name: Option<String>

The name of the room, if any.

num_joined_members: UInt

The number of members joined to the room.

room_id: RoomId

The ID of the room.

topic: Option<String>

The topic of the room, if any.

world_readable: bool

Whether the room may be viewed by guest users without joining.

guest_can_join: bool

Whether 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<String>

The URL for the room's avatar, if one is set.

Trait Implementations

impl Clone for PublicRoomsChunk

impl Debug for PublicRoomsChunk

impl<'de> Deserialize<'de> for PublicRoomsChunk

impl From<PublicRoomsChunkInit> for PublicRoomsChunk

impl Serialize for PublicRoomsChunk

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsyncTraitDeps for T where
    T: Send + Sync + Debug
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,