//! [GET /_matrix/client/r0/publicRooms](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-publicrooms) use js_int::UInt; use ruma_api::ruma_api; use super::PublicRoomsChunk; ruma_api! { metadata { description: "Get the list of rooms in this homeserver's public directory.", method: GET, name: "get_public_rooms", path: "/_matrix/client/r0/publicRooms", rate_limited: false, requires_authentication: false, } request { /// Limit for the number of results to return. #[serde(skip_serializing_if = "Option::is_none")] #[ruma_api(query)] limit: Option, /// Pagination token from a previous request. #[serde(skip_serializing_if = "Option::is_none")] #[ruma_api(query)] since: Option, /// The server to fetch the public room lists from. /// /// `None` means the server this request is sent to. #[serde(skip_serializing_if = "Option::is_none")] #[ruma_api(query)] server: Option, } response { /// A paginated chunk of public rooms. pub chunk: Vec, /// A pagination token for the response. pub next_batch: Option, /// A pagination token that allows fetching previous results. pub prev_batch: Option, /// An estimate on the total number of public rooms, if the server has an estimate. pub total_room_count_estimate: Option, } }