pub mod msc3843 {
use ruma_common::{
OwnedEventId, OwnedRoomId,
api::{request, response},
metadata,
};
use crate::authentication::ServerSignatures;
metadata! {
method: POST,
rate_limited: false,
authentication: ServerSignatures,
path: "/_matrix/federation/unstable/org.matrix.msc3843/rooms/{room_id}/report/{event_id}",
}
#[request]
pub struct Request {
#[ruma_api(path)]
pub room_id: OwnedRoomId,
#[ruma_api(path)]
pub event_id: OwnedEventId,
pub reason: String,
}
#[response]
pub struct Response {}
impl Request {
pub fn new(room_id: OwnedRoomId, event_id: OwnedEventId, reason: String) -> Self {
Self { room_id, event_id, reason }
}
}
impl Response {
pub fn new() -> Self {
Self {}
}
}
}