ruma_client_api/membership/
forget_room.rs1pub mod v3 {
6 use ruma_common::{
11 OwnedRoomId,
12 api::{auth_scheme::AccessToken, request, response},
13 metadata,
14 };
15
16 metadata! {
17 method: POST,
18 rate_limited: true,
19 authentication: AccessToken,
20 history: {
21 1.0 => "/_matrix/client/r0/rooms/{room_id}/forget",
22 1.1 => "/_matrix/client/v3/rooms/{room_id}/forget",
23 }
24 }
25
26 #[request(error = crate::Error)]
28 pub struct Request {
29 #[ruma_api(path)]
31 pub room_id: OwnedRoomId,
32 }
33
34 #[response(error = crate::Error)]
36 #[derive(Default)]
37 pub struct Response {}
38
39 impl Request {
40 pub fn new(room_id: OwnedRoomId) -> Self {
42 Self { room_id }
43 }
44 }
45
46 impl Response {
47 pub fn new() -> Self {
49 Self {}
50 }
51 }
52}