1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pub mod get_public_rooms;
pub mod get_public_rooms_filtered;
use js_int::UInt;
use ruma_identifiers::{RoomAliasId, RoomId};
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PublicRoomsChunk {
#[serde(skip_serializing_if = "Option::is_none")]
pub aliases: Option<Vec<RoomAliasId>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub canonical_alias: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
pub num_joined_members: UInt,
pub room_id: RoomId,
#[serde(skip_serializing_if = "Option::is_none")]
pub topic: Option<String>,
pub world_readable: bool,
pub guest_can_join: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub avatar_url: Option<String>,
}