ruma_client_api/profile/
delete_profile_field.rs1pub mod v3 {
6 use ruma_common::{
11 OwnedUserId,
12 api::{auth_scheme::AccessToken, request, response},
13 metadata,
14 };
15
16 use crate::profile::ProfileFieldName;
17
18 metadata! {
19 method: DELETE,
20 rate_limited: true,
21 authentication: AccessToken,
22 history: {
23 unstable("uk.tcpip.msc4133") => "/_matrix/client/unstable/uk.tcpip.msc4133/profile/{user_id}/{field}",
24 1.16 => "/_matrix/client/v3/profile/{user_id}/{field}",
25 }
26 }
27
28 #[request(error = crate::Error)]
30 pub struct Request {
31 #[ruma_api(path)]
33 pub user_id: OwnedUserId,
34
35 #[ruma_api(path)]
37 pub field: ProfileFieldName,
38 }
39
40 impl Request {
41 pub fn new(user_id: OwnedUserId, field: ProfileFieldName) -> Self {
43 Self { user_id, field }
44 }
45 }
46
47 #[response(error = crate::Error)]
49 #[derive(Default)]
50 pub struct Response {}
51
52 impl Response {
53 pub fn new() -> Self {
55 Self {}
56 }
57 }
58}