pub mod v1 {
use ruma_common::{
OwnedUserId,
api::{auth_scheme::AccessToken, request, response},
metadata,
};
metadata! {
method: GET,
rate_limited: false,
authentication: AccessToken,
history: {
unstable("uk.timedout.msc4323") => "/_matrix/client/unstable/uk.timedout.msc4323/admin/suspend/{user_id}",
1.18 => "/_matrix/client/v1/admin/suspend/{user_id}",
}
}
#[request]
pub struct Request {
#[ruma_api(path)]
pub user_id: OwnedUserId,
}
#[response]
pub struct Response {
pub suspended: bool,
}
impl Request {
pub fn new(user_id: OwnedUserId) -> Self {
Self { user_id }
}
}
impl Response {
pub fn new(suspended: bool) -> Self {
Self { suspended }
}
}
}