ruma_client_api/tag/
delete_tag.rs1pub mod v3 {
6 use ruma_common::{
11 OwnedRoomId, OwnedUserId,
12 api::{auth_scheme::AccessToken, request, response},
13 metadata,
14 };
15
16 metadata! {
17 method: DELETE,
18 rate_limited: false,
19 authentication: AccessToken,
20 history: {
21 1.0 => "/_matrix/client/r0/user/{user_id}/rooms/{room_id}/tags/{tag}",
22 1.1 => "/_matrix/client/v3/user/{user_id}/rooms/{room_id}/tags/{tag}",
23 }
24 }
25
26 #[request(error = crate::Error)]
28 pub struct Request {
29 #[ruma_api(path)]
31 pub user_id: OwnedUserId,
32
33 #[ruma_api(path)]
35 pub room_id: OwnedRoomId,
36
37 #[ruma_api(path)]
39 pub tag: String,
40 }
41
42 #[response(error = crate::Error)]
44 #[derive(Default)]
45 pub struct Response {}
46
47 impl Request {
48 pub fn new(user_id: OwnedUserId, room_id: OwnedRoomId, tag: String) -> Self {
50 Self { user_id, room_id, tag }
51 }
52 }
53
54 impl Response {
55 pub fn new() -> Self {
57 Self {}
58 }
59 }
60}