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 profile::ProfileFieldName,
15 };
16
17 metadata! {
18 method: DELETE,
19 rate_limited: true,
20 authentication: AccessToken,
21 history: {
22 unstable("uk.tcpip.msc4133") => "/_matrix/client/unstable/uk.tcpip.msc4133/profile/{user_id}/{field}",
23 1.16 => "/_matrix/client/v3/profile/{user_id}/{field}",
24 }
25 }
26
27 #[request]
29 pub struct Request {
30 #[ruma_api(path)]
32 pub user_id: OwnedUserId,
33
34 #[ruma_api(path)]
36 pub field: ProfileFieldName,
37 }
38
39 impl Request {
40 pub fn new(user_id: OwnedUserId, field: ProfileFieldName) -> Self {
42 Self { user_id, field }
43 }
44 }
45
46 #[response]
48 #[derive(Default)]
49 pub struct Response {}
50
51 impl Response {
52 pub fn new() -> Self {
54 Self {}
55 }
56 }
57}