pub mod v1 {
use js_int::UInt;
use ruma_common::{
api::{auth_scheme::AccessToken, request, response},
metadata,
};
metadata! {
method: GET,
rate_limited: true,
authentication: AccessToken,
history: {
unstable("org.matrix.msc3916") => "/_matrix/client/unstable/org.matrix.msc3916/media/config",
1.11 | stable("org.matrix.msc3916.stable") => "/_matrix/client/v1/media/config",
}
}
#[request(error = crate::Error)]
#[derive(Default)]
pub struct Request {}
#[response(error = crate::Error)]
pub struct Response {
#[serde(rename = "m.upload.size")]
pub upload_size: UInt,
}
impl Request {
pub fn new() -> Self {
Self {}
}
}
impl Response {
pub fn new(upload_size: UInt) -> Self {
Self { upload_size }
}
}
}