ruma_client_api/alias/
delete_alias.rs1pub mod v3 {
6    use ruma_common::{
11        api::{request, response, Metadata},
12        metadata, OwnedRoomAliasId,
13    };
14
15    const METADATA: Metadata = metadata! {
16        method: DELETE,
17        rate_limited: false,
18        authentication: AccessToken,
19        history: {
20            1.0 => "/_matrix/client/r0/directory/room/{room_alias}",
21            1.1 => "/_matrix/client/v3/directory/room/{room_alias}",
22        }
23    };
24
25    #[request(error = crate::Error)]
27    pub struct Request {
28        #[ruma_api(path)]
30        pub room_alias: OwnedRoomAliasId,
31    }
32
33    #[response(error = crate::Error)]
35    #[derive(Default)]
36    pub struct Response {}
37
38    impl Request {
39        pub fn new(room_alias: OwnedRoomAliasId) -> Self {
41            Self { room_alias }
42        }
43    }
44
45    impl Response {
46        pub fn new() -> Self {
48            Self {}
49        }
50    }
51}