synapse_admin_api/rooms/room_members/
v1.rs1use ruma::{
3 OwnedRoomId, OwnedUserId, UInt,
4 api::{auth_scheme::AccessToken, metadata, request, response},
5};
6
7metadata! {
8 method: GET,
9 rate_limited: false,
10 authentication: AccessToken,
11 path: "/_synapse/admin/v1/rooms/{room_id}/members",
12}
13
14#[request]
15pub struct Request {
16 #[ruma_api(path)]
18 pub room_id: OwnedRoomId,
19}
20
21#[response]
22pub struct Response {
23 pub members: Vec<OwnedUserId>,
25
26 pub total: UInt,
28}
29
30impl Request {
31 pub fn new(room_id: OwnedRoomId) -> Self {
33 Self { room_id }
34 }
35}
36
37impl Response {
38 pub fn new(members: Vec<OwnedUserId>, total: UInt) -> Self {
40 Self { members, total }
41 }
42}