ruma_client_api/threads/
unsubscribe_thread.rs1pub mod unstable {
6 use ruma_common::{
11 OwnedEventId, OwnedRoomId,
12 api::{auth_scheme::AccessToken, request, response},
13 metadata,
14 };
15
16 metadata! {
17 method: DELETE,
18 rate_limited: true,
19 authentication: AccessToken,
20 history: {
21 unstable("org.matrix.msc4306") => "/_matrix/client/unstable/io.element.msc4306/rooms/{room_id}/thread/{thread_root}/subscription",
22 }
23 }
24
25 #[request(error = crate::Error)]
27 pub struct Request {
28 #[ruma_api(path)]
30 pub room_id: OwnedRoomId,
31
32 #[ruma_api(path)]
34 pub thread_root: OwnedEventId,
35 }
36
37 #[response(error = crate::Error)]
39 pub struct Response {}
40
41 impl Request {
42 pub fn new(room_id: OwnedRoomId, thread_root: OwnedEventId) -> Self {
44 Self { room_id, thread_root }
45 }
46 }
47
48 impl Response {
49 pub fn new() -> Self {
51 Self {}
52 }
53 }
54}