[][src]Struct ruma_client_api::r0::directory::PublicRoomsChunk

pub struct PublicRoomsChunk {
    pub aliases: Option<Vec<RoomAliasId>>,
    pub canonical_alias: Option<String>,
    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

Fields

aliases: Option<Vec<RoomAliasId>>

Aliases of the room.

canonical_alias: Option<String>

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[src]

impl Debug for PublicRoomsChunk[src]

impl<'de> Deserialize<'de> for PublicRoomsChunk[src]

impl Serialize for PublicRoomsChunk[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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: 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>,