1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pub mod unstable {
use js_int::UInt;
use ruma_common::{api::ruma_api, OwnedMxcUri};
ruma_api! {
metadata: {
description: "Create an MXC URI without content.",
method: POST,
name: "create_mxc_uri",
unstable_path: "/_matrix/media/unstable/fi.mau.msc2246/create",
rate_limited: true,
authentication: AccessToken,
}
request: {}
response: {
pub content_uri: OwnedMxcUri,
pub unused_expires_at: UInt,
}
error: crate::Error
}
impl Response {
pub fn new(content_uri: OwnedMxcUri, unused_expires_at: UInt) -> Self {
Self { content_uri, unused_expires_at }
}
}
}